This commit is contained in:
Kyep
2020-10-24 21:45:40 -07:00
parent f78f9eeeb1
commit c33ebb7c04
+7 -3
View File
@@ -26,11 +26,15 @@ ALTER TABLE `library` ADD INDEX(`ckey`);
ALTER TABLE `library` ADD INDEX(`flagged`);
ALTER TABLE `notes` ADD INDEX(`ckey`);
ALTER TABLE `oauth_tokens` ADD INDEX(`ckey`);
# Alter whitelist table to change ckey format to avoid SQL failures when downstreams apply indexes
ALTER TABLE `whitelist` CHANGE COLUMN `ckey` `ckey` VARCHAR(32) COLLATE utf8mb4_unicode_ci NOT NULL AFTER `id`;
# Delete pointless indexes
# Delete pointless indexes (there is already an index on ckey, having a second index on the exact same data is pointless)
DROP INDEX ckey_UNIQUE ON privacy;
@@ -41,7 +45,8 @@ DROP INDEX ckey_UNIQUE ON privacy;
ALTER TABLE `player` ADD COLUMN `byond_date` DATE;
# These updates change your DB to match what we (Paradise) ALREADY USE IN PRODUCTION
# **************** READ THIS CAREFULLY **********************************************************
# These updates change your DB to match what we (Paradise) ALREADY USE IN PRODUCTION.
# We (Paradise) do NOT need to run any of these.
# They are included here only for the convenience of github contributors, and downstream servers.
@@ -87,7 +92,6 @@ ALTER TABLE `characters` CHANGE COLUMN `socks` `socks` longtext COLLATE utf8mb4_
ALTER TABLE `characters` CHANGE COLUMN `body_accessory` `body_accessory` longtext COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `characters` CHANGE COLUMN `gear` `gear` longtext COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `characters` ADD INDEX(`ckey`);
ALTER TABLE `ban` CHANGE COLUMN `serverip` `serverip` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL;