From 3788ae136437a79615bfc2c55c25dd973935ea5f Mon Sep 17 00:00:00 2001 From: Pablo Aragon Date: Tue, 2 Apr 2024 12:33:27 +0200 Subject: [PATCH] 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`