Updated cockatrice_warnings table to use id column as primary key

This commit is contained in:
woogerboy21 2015-09-23 19:17:41 -04:00
parent d55e44ea60
commit b65882f7ce
4 changed files with 12 additions and 6 deletions

View file

@ -0,0 +1,6 @@
-- Servatrice db migration from version 10 to version 11
alter table cockatrice_warnings change id user_id int(7) unsigned NOT NULL;
alter table cockatrice_warnings drop primary key, add primary key(user_id,time_of);
UPDATE cockatrice_schema_version SET version=11 WHERE version=10;