Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions upgrade/sql/9.2.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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(); */;

Expand Down
Loading