diff --git a/upgrade/sql/9.2.0.sql b/upgrade/sql/9.2.0.sql index fe9db3d5f..d2ceb1fa7 100644 --- a/upgrade/sql/9.2.0.sql +++ b/upgrade/sql/9.2.0.sql @@ -158,6 +158,8 @@ CREATE TABLE IF NOT EXISTS `PREFIX_b2b_role_authorization_role` ( CREATE TABLE IF NOT EXISTS `PREFIX_extra_property_definition` ( `id_extra_property_definition` int(10) unsigned NOT NULL AUTO_INCREMENT, `entity_name` varchar(64) NOT NULL, + `table_name` varchar(64) DEFAULT NULL, + `controller_name` varchar(64) DEFAULT NULL, `module_name` varchar(64) DEFAULT NULL, `property_name` varchar(64) NOT NULL, `type` ENUM ('int','bool','string','float','date','html','json','choice') NOT NULL DEFAULT 'string', @@ -183,6 +185,14 @@ CREATE TABLE IF NOT EXISTS `PREFIX_extra_property_definition` ( KEY `module_name` (`module_name`) ) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +-- Shops an extra property definition is restricted to (no row = no explicit restriction). +CREATE TABLE IF NOT EXISTS `PREFIX_extra_property_definition_shop` ( + `id_extra_property_definition` int(10) unsigned NOT NULL, + `id_shop` int(10) unsigned NOT NULL, + PRIMARY KEY (`id_extra_property_definition`, `id_shop`), + KEY `id_shop` (`id_shop`) +) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + -- https://github.com/PrestaShop/PrestaShop/pull/41775 /* PHP:ps_920_extra_property_definitions_tab(); */;