[Bug Fix] Add chatchannel_reserved_names to a new manifest (#3482)

# Notes
- This should resolve issues where the old query fails because it's adding an already existing column to another table.
This commit is contained in:
Alex King
2023-07-04 16:19:24 -04:00
committed by GitHub
parent 01a1186e63
commit c2fa61b3a2
2 changed files with 17 additions and 1 deletions
@@ -4744,6 +4744,22 @@ ADD COLUMN `id` int(11) NOT NULL AUTO_INCREMENT FIRST,
ADD PRIMARY KEY (`id`);
)",
},
ManifestEntry{
.version = 9229,
.description = "2023_07_04_chatchannel_reserved_names_fix.sql",
.check = "SHOW TABLES LIKE 'chatchannel_reserved_names'",
.condition = "empty",
.match = "",
.sql = R"(
CREATE TABLE `chatchannel_reserved_names`
(
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(64) NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
)"
},
// -- template; copy/paste this when you need to create a new entry
// ManifestEntry{