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);
|
|
|
|
|
2003-10-03 02:49:26 +00:00
|
|
|
-- alter table category
|
|
|
|
-- add unique langID (lang, orderID);
|
2003-08-15 17:36:44 +00:00
|
|
|
|
2003-10-03 02:49:26 +00:00
|
|
|
-- alter table forum
|
|
|
|
-- add unique orderID (orderID, category);
|
2003-08-15 17:36:44 +00:00
|
|
|
|
2003-10-03 02:49:26 +00:00
|
|
|
-- alter table post
|
|
|
|
-- add fulltext content (content);
|
2003-08-15 17:36:44 +00:00
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
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),
|
2003-10-25 07:29:43 +00:00
|
|
|
add index user_avg (expavg_credit desc),
|
2003-10-24 20:13:50 +00:00
|
|
|
add unique user_seti_inx (seti_id);
|
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),
|
2003-10-25 07:29:43 +00:00
|
|
|
add index team_tot (total_credit desc),
|
2003-10-24 20:13:50 +00:00
|
|
|
add unique team_seti_inx (seti_id);
|
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-08-15 20:35:44 +00:00
|
|
|
add index wu_timeout (transition_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),
|
2003-04-01 03:28:37 +00:00
|
|
|
add index ind_res_st (server_state, random),
|
2003-08-15 17:36:44 +00:00
|
|
|
add index res_filedel (file_delete_state),
|
|
|
|
add index res_hostid (hostid),
|
2003-10-16 18:10:56 +00:00
|
|
|
add index res_wu_user (workunitid, userid),
|
2003-11-11 20:49:07 +00:00
|
|
|
add index app_received_time (appid, received_time desc);
|
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);
|
2003-10-24 20:13:50 +00:00
|
|
|
|
|
|
|
alter table profile
|
|
|
|
add unique profile_userid(userid);
|