From cf3ddad6fb9759140aa79e832200594ae5d8d692 Mon Sep 17 00:00:00 2001 From: Jonathan LELIEVRE Date: Tue, 1 Sep 2026 14:01:35 +0200 Subject: [PATCH 1/3] Create the extra_property_definition_shop table in the 9.2.0 upgrade script --- upgrade/sql/9.2.0.sql | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/upgrade/sql/9.2.0.sql b/upgrade/sql/9.2.0.sql index fe9db3d5f..2dc100fc0 100644 --- a/upgrade/sql/9.2.0.sql +++ b/upgrade/sql/9.2.0.sql @@ -183,6 +183,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(); */; From 34216889e7432c03fa8b5a571a9e5c28513e2b6e Mon Sep 17 00:00:00 2001 From: Jonathan LELIEVRE Date: Thu, 3 Sep 2026 15:58:14 +0200 Subject: [PATCH 2/3] Add the table_name column to the extra property definition registry Companion of PrestaShop/PrestaShop#42538: the registry now persists the resolved physical entity table (non-conventional naming support), so the upgrade DDL must create the column for shops upgrading to 9.2.0. --- upgrade/sql/9.2.0.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/upgrade/sql/9.2.0.sql b/upgrade/sql/9.2.0.sql index 2dc100fc0..311513165 100644 --- a/upgrade/sql/9.2.0.sql +++ b/upgrade/sql/9.2.0.sql @@ -158,6 +158,7 @@ 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, `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', From 911c4d7125843cb18a143972c916285add531adb Mon Sep 17 00:00:00 2001 From: Jonathan LELIEVRE Date: Fri, 4 Sep 2026 17:10:32 +0200 Subject: [PATCH 3/3] Add the controller_name column to the extra property registry --- upgrade/sql/9.2.0.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/upgrade/sql/9.2.0.sql b/upgrade/sql/9.2.0.sql index 311513165..d2ceb1fa7 100644 --- a/upgrade/sql/9.2.0.sql +++ b/upgrade/sql/9.2.0.sql @@ -159,6 +159,7 @@ 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',