PlayerbotV2: migration 0063 column comments without a semicolon
Ubuntu x64 / build (clang-17, clang++-17, <nil>, 1) (push) Canceled after 0s
Ubuntu x64 / build (clang-17, clang++-17, ccache, 0) (push) Canceled after 0s
Ubuntu x64 / build (gcc-13, g++-13, <nil>, 1) (push) Canceled after 0s
macOS arm64 / build (push) Canceled after 0s
Windows x64 / build (push) Canceled after 0s
Ubuntu x64 / build (clang-17, clang++-17, <nil>, 1) (push) Canceled after 0s
Ubuntu x64 / build (clang-17, clang++-17, ccache, 0) (push) Canceled after 0s
Ubuntu x64 / build (gcc-13, g++-13, <nil>, 1) (push) Canceled after 0s
macOS arm64 / build (push) Canceled after 0s
Windows x64 / build (push) Canceled after 0s
The migration runner splits statements on every ';' outside a whole-line comment, so the 'ChrRaces id; 0 = any race' column comments cut the first CREATE TABLE in two and MySQL error 1064 stopped the worldserver at start (PR #394).
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
CREATE TABLE IF NOT EXISTS {SHARED}.`playerbots_race_names` (
|
||||
`name_id` int unsigned NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`race` tinyint unsigned NOT NULL DEFAULT '0' COMMENT 'ChrRaces id; 0 = any race',
|
||||
`race` tinyint unsigned NOT NULL DEFAULT '0' COMMENT 'ChrRaces id, 0 = any race',
|
||||
`gender` tinyint unsigned NOT NULL DEFAULT '2' COMMENT '0=male, 1=female, 2=neutral',
|
||||
`is_used` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`used_by_guid` bigint unsigned DEFAULT NULL,
|
||||
@@ -46,7 +46,7 @@ CREATE TABLE IF NOT EXISTS {SHARED}.`playerbots_race_names` (
|
||||
CREATE TABLE IF NOT EXISTS {SHARED}.`playerbots_surnames` (
|
||||
`surname_id` int unsigned NOT NULL AUTO_INCREMENT,
|
||||
`surname` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`race` tinyint unsigned NOT NULL DEFAULT '0' COMMENT 'ChrRaces id; 0 = any race',
|
||||
`race` tinyint unsigned NOT NULL DEFAULT '0' COMMENT 'ChrRaces id, 0 = any race',
|
||||
`gender` tinyint unsigned NOT NULL DEFAULT '2' COMMENT '0=male, 1=female, 2=neutral',
|
||||
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`surname_id`),
|
||||
@@ -58,7 +58,7 @@ CREATE TABLE IF NOT EXISTS {SHARED}.`playerbots_surname_parts` (
|
||||
`part_id` int unsigned NOT NULL AUTO_INCREMENT,
|
||||
`part` varchar(24) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`half` tinyint unsigned NOT NULL COMMENT '0=prefix, 1=suffix',
|
||||
`race` tinyint unsigned NOT NULL DEFAULT '0' COMMENT 'ChrRaces id; 0 = any race',
|
||||
`race` tinyint unsigned NOT NULL DEFAULT '0' COMMENT 'ChrRaces id, 0 = any race',
|
||||
PRIMARY KEY (`part_id`),
|
||||
UNIQUE KEY `uk_part` (`part`,`half`,`race`),
|
||||
KEY `idx_race` (`race`,`half`)
|
||||
|
||||
Reference in New Issue
Block a user