From 3788ae136437a79615bfc2c55c25dd973935ea5f Mon Sep 17 00:00:00 2001 From: Pablo Aragon Date: Tue, 2 Apr 2024 12:33:27 +0200 Subject: [PATCH 1/2] 13224-Fix CHARACTER in DB --- pandora_console/extras/mr/70.sql | 7 +++++++ pandora_console/pandoradb.sql | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 pandora_console/extras/mr/70.sql diff --git a/pandora_console/extras/mr/70.sql b/pandora_console/extras/mr/70.sql new file mode 100644 index 0000000000..20a2b4e7c6 --- /dev/null +++ b/pandora_console/extras/mr/70.sql @@ -0,0 +1,7 @@ +START TRANSACTION; + +ALTER TABLE tfavmenu_user CONVERT TO CHARACTER SET UTF8MB4; +ALTER TABLE tfiles_repo CONVERT TO CHARACTER SET UTF8MB4; +ALTER TABLE tfiles_repo_group CONVERT TO CHARACTER SET UTF8MB4; + +COMMIT; \ No newline at end of file diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 1fad03b09f..5f5a2bf10c 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -4432,7 +4432,8 @@ CREATE TABLE IF NOT EXISTS `tfavmenu_user` ( `url` TEXT NOT NULL, `label` VARCHAR(255) NOT NULL, `section` VARCHAR(255) NOT NULL, - PRIMARY KEY (`id`)); + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4; -- --------------------------------------------------------------------- -- Table `tsesion_filter_log_viewer` @@ -4578,7 +4579,7 @@ CREATE TABLE IF NOT EXISTS `tfiles_repo` ( `description` varchar(500) NULL default '', `hash` varchar(8) NULL default '', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4; -- --------------------------------------------------------------------- -- Table `tfiles_repo_group` @@ -4589,7 +4590,7 @@ CREATE TABLE IF NOT EXISTS `tfiles_repo_group` ( `id_group` int(4) unsigned NOT NULL, PRIMARY KEY (`id`), FOREIGN KEY (`id_file`) REFERENCES tfiles_repo(`id`) ON DELETE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8; +) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4; -- ----------------------------------------------------- -- Table `tmodule_synth` From ee10584cde6421c6524983976b4eb709b00c4173 Mon Sep 17 00:00:00 2001 From: Pablo Aragon Date: Wed, 3 Apr 2024 09:37:59 +0200 Subject: [PATCH 2/2] 13224-Change to 69.sql --- pandora_console/extras/mr/69.sql | 4 ++++ pandora_console/extras/mr/70.sql | 7 ------- 2 files changed, 4 insertions(+), 7 deletions(-) delete mode 100644 pandora_console/extras/mr/70.sql diff --git a/pandora_console/extras/mr/69.sql b/pandora_console/extras/mr/69.sql index 19dfe33d6d..2be1a25079 100644 --- a/pandora_console/extras/mr/69.sql +++ b/pandora_console/extras/mr/69.sql @@ -2,6 +2,10 @@ START TRANSACTION; DROP TABLE tskin; +ALTER TABLE tfavmenu_user CONVERT TO CHARACTER SET UTF8MB4; +ALTER TABLE tfiles_repo CONVERT TO CHARACTER SET UTF8MB4; +ALTER TABLE tfiles_repo_group CONVERT TO CHARACTER SET UTF8MB4; + ALTER TABLE `tusuario` ADD COLUMN `stop_lts_modal` TINYINT NOT NULL DEFAULT 0 AFTER `session_max_time_expire`; diff --git a/pandora_console/extras/mr/70.sql b/pandora_console/extras/mr/70.sql deleted file mode 100644 index 20a2b4e7c6..0000000000 --- a/pandora_console/extras/mr/70.sql +++ /dev/null @@ -1,7 +0,0 @@ -START TRANSACTION; - -ALTER TABLE tfavmenu_user CONVERT TO CHARACTER SET UTF8MB4; -ALTER TABLE tfiles_repo CONVERT TO CHARACTER SET UTF8MB4; -ALTER TABLE tfiles_repo_group CONVERT TO CHARACTER SET UTF8MB4; - -COMMIT; \ No newline at end of file