Use newer CHARSET utf8mb4 for new installation

This commit is contained in:
leemyongpakvn
2022-06-29 18:26:36 +07:00
committed by GitHub
parent a6dd0b3228
commit 514eac9f70
+2 -2
View File
@@ -124,7 +124,7 @@ class Ps_MainMenu extends Module implements WidgetInterface
`id_shop` INT(11) UNSIGNED NOT NULL,
`new_window` TINYINT( 1 ) NOT NULL,
INDEX (`id_shop`)
) ENGINE = ' . _MYSQL_ENGINE_ . ' CHARACTER SET utf8 COLLATE utf8_general_ci;') &&
) ENGINE = ' . _MYSQL_ENGINE_ . ' DEFAULT CHARSET=utf8mb4;') &&
Db::getInstance()->execute('
CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'linksmenutop_lang` (
`id_linksmenutop` INT(11) UNSIGNED NOT NULL,
@@ -133,7 +133,7 @@ class Ps_MainMenu extends Module implements WidgetInterface
`label` VARCHAR( 128 ) NOT NULL ,
`link` VARCHAR( 128 ) NOT NULL ,
INDEX ( `id_linksmenutop` , `id_lang`, `id_shop`)
) ENGINE = ' . _MYSQL_ENGINE_ . ' CHARACTER SET utf8 COLLATE utf8_general_ci;');
) ENGINE = ' . _MYSQL_ENGINE_ . ' DEFAULT CHARSET=utf8mb4;');
}
public function uninstall($delete_params = true)