db: change index names to not be shortened

This commit is contained in:
Kevin Reed 2018-05-17 08:46:37 -05:00
parent f799c9c04b
commit 7ce2370160
2 changed files with 14 additions and 14 deletions

View File

@ -73,7 +73,7 @@ alter table result
alter table msg_from_host
add index message_handled (handled),
-- for message handler
add index mfh_hostid(hostid);
add index message_hostid(hostid);
-- for delete account
alter table msg_to_host
@ -156,25 +156,25 @@ alter table token
add index token_userid(userid);
alter table user_deleted
add index ud_create(create_time);
add index user_deleted_create(create_time);
-- for delete account
alter table host_deleted
add index hd_create(create_time);
add index host_deleted_create(create_time);
-- for delete account
alter table donation_paypal
-- for delete account
add index dp_userid(userid);
add index donation_paypal_userid(userid);
alter table banishment_vote
add index bv_userid(userid);
add index banishment_vote_userid(userid);
-- for delete account
alter table post_ratings
add index pr_user(user);
add index post_ratings_user(user);
-- for delete account
alter table sent_email
add index se_userid(userid);
add index sent_email_userid(userid);
-- for delete account

View File

@ -1130,11 +1130,11 @@ function update_5_9_2018() {
");
$retval = $retval && do_query("alter table user_deleted
add index ud_create(create_time)
add index user_deleted_create(create_time)
");
$retval = $retval && do_query("alter table host_deleted
add index hd_create(create_time)
add index host_deleted_create(create_time)
");
$retval = $retval && do_query("alter table team_delta
@ -1142,23 +1142,23 @@ function update_5_9_2018() {
");
$retval = $retval && do_query("alter table donation_paypal
add index dp_userid(userid)
add index donation_paypal_userid(userid)
");
$retval = $retval && do_query("alter table banishment_vote
add index bv_userid(userid)
add index banishment_vote_userid(userid)
");
$retval = $retval && do_query("alter table post_ratings
add index pr_user(user)
add index post_ratings_user(user)
");
$retval = $retval && do_query("alter table msg_from_host
add index mfh_hostid(hostid)
add index message_hostid(hostid)
");
return $retval && do_query("alter table sent_email
add index se_userid(userid)
add index sent_email_userid(userid)
");
}