2002-07-11 20:35:05 +00:00
|
|
|
use BOINC_DB_NAME;
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
alter table platform
|
|
|
|
add unique(name);
|
|
|
|
|
|
|
|
alter table app
|
|
|
|
add unique(name);
|
|
|
|
|
|
|
|
alter table app_version
|
|
|
|
add unique(appid, platformid, version_num);
|
|
|
|
|
|
|
|
alter table user
|
|
|
|
add unique(email_addr);
|
2002-11-11 10:26:40 +00:00
|
|
|
alter table user
|
|
|
|
add unique(authenticator);
|
2002-11-07 19:31:34 +00:00
|
|
|
alter table user
|
|
|
|
add index ind_tid (teamid);
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-07-11 20:35:05 +00:00
|
|
|
alter table team
|
|
|
|
add unique(name);
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
alter table workunit
|
|
|
|
add unique(name);
|
2002-11-07 19:31:34 +00:00
|
|
|
create index wu_val on workunit(appid, need_validate);
|
|
|
|
create index wu_retry on workunit(appid, retry_check_time);
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
alter table result
|
|
|
|
add unique(name);
|
2002-11-07 19:31:34 +00:00
|
|
|
create index res_wuid on result(workunitid);
|
2002-04-30 22:22:54 +00:00
|
|
|
create index ind_res_st on result(state);
|