From 613d6a6d1347d54e45a251105628c3e558494432 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Tue, 9 Mar 2021 13:52:24 +0000 Subject: [PATCH] Change DXCC tables to UTF8mb4 this fixes #924 --- application/config/migration.php | 2 +- .../065_changed_dxcc_tables_utf8mb4.php | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 application/migrations/065_changed_dxcc_tables_utf8mb4.php diff --git a/application/config/migration.php b/application/config/migration.php index 7fbf6167..516bd52f 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE; | be upgraded / downgraded to. | */ -$config['migration_version'] = 64; +$config['migration_version'] = 65; /* |-------------------------------------------------------------------------- diff --git a/application/migrations/065_changed_dxcc_tables_utf8mb4.php b/application/migrations/065_changed_dxcc_tables_utf8mb4.php new file mode 100644 index 00000000..d1347357 --- /dev/null +++ b/application/migrations/065_changed_dxcc_tables_utf8mb4.php @@ -0,0 +1,23 @@ +db->query("ALTER TABLE dxcc_entities CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;"); + $this->db->query("ALTER TABLE dxcc_exceptions CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;"); + $this->db->query("ALTER TABLE dxcc_prefixes CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;"); + } + + public function down() + { + + } +}