Implement SQL migrations with Flyway (#1661)

Has a readme and everything.

Tables to be dropped with this:

ss13_customitems
ss13_bot_cache
ss13_feedback_archive
ss13_news
ss13_stats_ie
This commit is contained in:
skull132
2017-01-29 21:14:58 +02:00
committed by GitHub
parent 0cba68911d
commit b1b4ce00a8
5 changed files with 614 additions and 250 deletions

17
SQL/misc/Debug_tables.sql Normal file
View File

@@ -0,0 +1,17 @@
-- These are tables used only for debugging/profiling.
-- They are not needed for normal server operation.
CREATE TABLE `ss13dbg_lighting` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`time` INT(11) NULL DEFAULT NULL COMMENT 'World time (in ticks)',
`type` VARCHAR(32) NULL DEFAULT NULL COMMENT 'The type of the update.',
`name` VARCHAR(50) NULL DEFAULT NULL COMMENT 'The callee\'s name.',
`loc_name` VARCHAR(50) NULL DEFAULT NULL COMMENT 'The callee\'s location.',
`x` SMALLINT(6) NULL DEFAULT NULL,
`y` SMALLINT(6) NULL DEFAULT NULL,
`z` SMALLINT(6) NULL DEFAULT NULL,
PRIMARY KEY (`id`)
)
COLLATE='utf8_general_ci'
ENGINE=MEMORY
ROW_FORMAT=FIXED;