mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-25 08:03:54 -07:00
Implement migrations; fix #153
This commit is contained in:
parent
2de99475b0
commit
135205d368
4 changed files with 45 additions and 0 deletions
13
servatrice/migrations/servatrice_0000_to_0001.sql
Normal file
13
servatrice/migrations/servatrice_0000_to_0001.sql
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
-- Servatrice db migration from version 0 to version 1
|
||||
|
||||
-- FIX #153
|
||||
CREATE TABLE IF NOT EXISTS `cockatrice_schema_version` (
|
||||
`version` int(7) unsigned NOT NULL,
|
||||
PRIMARY KEY (`version`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT INTO cockatrice_schema_version VALUES(1);
|
||||
|
||||
-- FIX #1119
|
||||
ALTER TABLE `cockatrice_rooms_gametypes` DROP PRIMARY KEY;
|
||||
ALTER TABLE `cockatrice_rooms_gametypes` ADD KEY (`id_room`);
|
||||
Loading…
Add table
Add a link
Reference in a new issue