Change DXCC tables to UTF8mb4 this fixes #924

pull/931/head
Peter Goodhall 2021-03-09 13:52:24 +00:00
rodzic 41f6b54336
commit 613d6a6d13
2 zmienionych plików z 24 dodań i 1 usunięć

Wyświetl plik

@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
| be upgraded / downgraded to.
|
*/
$config['migration_version'] = 64;
$config['migration_version'] = 65;
/*
|--------------------------------------------------------------------------

Wyświetl plik

@ -0,0 +1,23 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
* This migration creates a table called options which will hold global options needed within cloudlog
* removing the need for lots of configuration files.
*/
class Migration_changed_dxcc_tables_utf8mb4 extends CI_Migration {
public function up()
{
$this->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()
{
}
}