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),
|
2003-01-31 07:19:20 +00:00
|
|
|
add index user_tot (total_credit desc),
|
|
|
|
add index user_avg (expavg_credit desc);
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-07-11 20:35:05 +00:00
|
|
|
alter table team
|
2003-01-31 00:04:51 +00:00
|
|
|
add unique(name),
|
2003-01-31 07:19:20 +00:00
|
|
|
add index team_avg (expavg_credit desc),
|
|
|
|
add index team_tot (total_credit desc);
|
2002-07-11 20:35:05 +00:00
|
|
|
|
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),
|
2003-02-11 19:28:02 +00:00
|
|
|
add index wu_timeout (appid, timeout_check_time),
|
2003-01-03 22:17:40 +00:00
|
|
|
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
|
2003-01-31 07:19:20 +00:00
|
|
|
add index host_user (userid),
|
|
|
|
add index host_avg (expavg_credit desc),
|
|
|
|
add index host_tot (total_credit desc);
|