DB: move index from schema.sql to constraints.sql

As noted in the comment this is how it should be.

Signed-off-by: Shawn Kwang <kwangs@uwm.edu>
This commit is contained in:
Christian Beer 2018-09-11 15:32:02 +02:00 committed by Shawn Kwang
parent c4c2ae69ba
commit 3d91ec6c8f
2 changed files with 4 additions and 2 deletions

View File

@ -179,6 +179,9 @@ alter table sent_email
add index sent_email_userid(userid);
-- for delete account
alter table private_messages
add index userid(userid);
alter table consent
add index userid_ctid(userid, consent_type_id);
add index consent_timestamp(consent_time);

View File

@ -627,8 +627,7 @@ create table private_messages (
opened tinyint not null default 0,
subject varchar(255) not null,
content text not null,
primary key(id),
key userid (userid)
primary key(id)
) engine=MyISAM;
create table credited_job (