From a7795eda5d39f347b683fbe8f884eacbdb0e8560 Mon Sep 17 00:00:00 2001 From: hg <4683435+hgtw@users.noreply.github.com> Date: Sun, 24 May 2020 21:17:21 -0400 Subject: [PATCH] Change expedition tables to latin1_swedish_ci Fixes insertion in MySQL older than 5.7.7 and MariaDB older than 10.2.2 that limit indexes to 767 bytes. This may be a temporary fix until future refactoring --- utils/sql/git/required/wip_expeditions.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/sql/git/required/wip_expeditions.sql b/utils/sql/git/required/wip_expeditions.sql index 052a52a0d..4810b1ade 100644 --- a/utils/sql/git/required/wip_expeditions.sql +++ b/utils/sql/git/required/wip_expeditions.sql @@ -10,7 +10,7 @@ CREATE TABLE `expedition_details` ( UNIQUE INDEX `instance_id` (`instance_id`), CONSTRAINT `FK_expedition_details_instance_list` FOREIGN KEY (`instance_id`) REFERENCES `instance_list` (`id`) ON DELETE SET NULL ) -COLLATE='utf8mb4_general_ci' +COLLATE='latin1_swedish_ci' ENGINE=InnoDB ; @@ -25,7 +25,7 @@ CREATE TABLE `expedition_lockouts` ( UNIQUE INDEX `expedition_id_event_name` (`expedition_id`, `event_name`), CONSTRAINT `FK_expedition_lockouts_expedition_details` FOREIGN KEY (`expedition_id`) REFERENCES `expedition_details` (`id`) ON DELETE CASCADE ) -COLLATE='utf8mb4_general_ci' +COLLATE='latin1_swedish_ci' ENGINE=InnoDB ; @@ -53,7 +53,7 @@ CREATE TABLE `expedition_character_lockouts` ( PRIMARY KEY (`id`), UNIQUE INDEX `character_id_expedition_name_event_name` (`character_id`, `expedition_name`, `event_name`) ) -COLLATE='utf8mb4_general_ci' +COLLATE='latin1_swedish_ci' ENGINE=InnoDB ROW_FORMAT=DYNAMIC ;