Updating schema version to 12 and adding migration script.
This commit is contained in:
parent
9963e9dfe7
commit
d9c0c97ae7
2 changed files with 6 additions and 1 deletions
5
servatrice/migrations/servatrice_0011_to_0012.sql
Normal file
5
servatrice/migrations/servatrice_0011_to_0012.sql
Normal file
|
@ -0,0 +1,5 @@
|
|||
-- Servatrice db migration from version 11 to version 12
|
||||
|
||||
alter table cockatrice_users modify token binary(16) NULL;
|
||||
|
||||
UPDATE cockatrice_schema_version SET version=12 WHERE version=11;
|
|
@ -20,7 +20,7 @@ CREATE TABLE IF NOT EXISTS `cockatrice_schema_version` (
|
|||
PRIMARY KEY (`version`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO cockatrice_schema_version VALUES(11);
|
||||
INSERT INTO cockatrice_schema_version VALUES(12);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `cockatrice_decklist_files` (
|
||||
`id` int(7) unsigned zerofill NOT NULL auto_increment,
|
||||
|
|
Loading…
Reference in a new issue