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
|
2003-01-03 22:17:40 +00:00
|
|
|
add unique(email_addr),
|
|
|
|
add unique(authenticator),
|
|
|
|
add index ind_tid (teamid),
|
|
|
|
add index user_avg (expavg_credit);
|
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
|
2003-01-03 22:17:40 +00:00
|
|
|
add unique(name),
|
|
|
|
add index wu_val (appid, need_validate),
|
|
|
|
add index wu_retry (appid, retry_check_time),
|
|
|
|
add index wu_filedel (file_delete_state),
|
|
|
|
add index wu_assim (appid, assimilate_state);
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
alter table result
|
2003-01-03 22:17:40 +00:00
|
|
|
add unique(name),
|
|
|
|
add index res_wuid (workunitid),
|
|
|
|
add index ind_res_st (server_state),
|
|
|
|
add index res_filedel (file_delete_state);
|
2003-01-03 21:55:05 +00:00
|
|
|
|
2003-01-03 22:17:40 +00:00
|
|
|
alter table host
|
|
|
|
add index host_avg (expavg_credit);
|