This commit is contained in:
2025-04-01 00:38:54 +02:00
parent d4d4c0c09d
commit 87da06293a
22351 changed files with 5168854 additions and 7538 deletions

View File

@@ -0,0 +1,2 @@
/* PHP:ps_update_tabs(); */;
ALTER TABLE `PREFIX_currency` MODIFY `name` varchar(64) NOT NULL;

View File

@@ -0,0 +1,139 @@
SET SESSION sql_mode = '';
SET NAMES 'utf8';
UPDATE `PREFIX_address_format` SET `format` = 'firstname lastname
company
vat_number
address1
address2
city
postcode
State:name
Country:name
phone' WHERE `id_country` = (SELECT `id_country` FROM `PREFIX_country` WHERE `iso_code` = 'IN');
UPDATE `PREFIX_hook` SET `name` = 'displayProductAdditionalInfo' WHERE `name` = 'displayProductButtons';
INSERT IGNORE INTO `PREFIX_hook_alias` (`name`, `alias`) VALUES ('displayProductAdditionalInfo', 'displayProductButtons');
-- Need old value before updating
ALTER TABLE `PREFIX_product` CHANGE `redirect_type` `redirect_type`
ENUM('','404',
'301', '302',
'301-product','302-product','301-category','302-category')
CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';
ALTER TABLE `PREFIX_product_shop` CHANGE `redirect_type` `redirect_type`
ENUM('','404',
'301', '302',
'301-product','302-product','301-category','302-category')
CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';
UPDATE `PREFIX_product` SET redirect_type = '301-product' WHERE redirect_type = '301';
UPDATE `PREFIX_product` SET redirect_type = '302-product' WHERE redirect_type = '302';
UPDATE `PREFIX_product_shop` SET redirect_type = '301-product' WHERE redirect_type = '301';
UPDATE `PREFIX_product_shop` SET redirect_type = '302-product' WHERE redirect_type = '302';
-- Can now remove old value
ALTER TABLE `PREFIX_product` CHANGE `redirect_type` `redirect_type`
ENUM('','404','301-product','302-product','301-category','302-category')
CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';
ALTER TABLE `PREFIX_product_shop` CHANGE `redirect_type` `redirect_type`
ENUM('','404','301-product','302-product','301-category','302-category')
CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '';
ALTER TABLE `PREFIX_product` CHANGE `id_product_redirected` `id_type_redirected` INT(10) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `PREFIX_product_shop` CHANGE `id_product_redirected` `id_type_redirected` INT(10) UNSIGNED NOT NULL DEFAULT '0';
INSERT INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `position`) VALUES
(NULL, 'filterCmsContent', 'Filter the content page', 'This hook is called just before fetching content page', '1'),
(NULL, 'filterCmsCategoryContent', 'Filter the content page category', 'This hook is called just before fetching content page category', '1'),
(NULL, 'filterProductContent', 'Filter the content page product', 'This hook is called just before fetching content page product', '1'),
(NULL, 'filterCategoryContent', 'Filter the content page category', 'This hook is called just before fetching content page category', '1'),
(NULL, 'filterManufacturerContent', 'Filter the content page manufacturer', 'This hook is called just before fetching content page manufacturer', '1'),
(NULL, 'filterSupplierContent', 'Filter the content page supplier', 'This hook is called just before fetching content page supplier', '1'),
(NULL, 'filterHtmlContent', 'Filter HTML field before rending a page', 'This hook is called just before fetching a page on HTML field', '1'),
(NULL, 'displayDashboardTop', 'Dashboard Top', 'Displays the content in the dashboard''s top area', '1'),
(NULL, 'actionObjectProductInCartDeleteBefore', 'Cart product removal', 'This hook is called before a product is removed from a cart', '1'),
(NULL, 'actionObjectProductInCartDeleteAfter', 'Cart product removal', 'This hook is called after a product is removed from a cart', '1'),
(NULL, 'actionUpdateLangAfter', 'Update "lang" tables', 'Update "lang" tables after adding or updating a language', '1'),
(NULL, 'actionOutputHTMLBefore', 'Filter the whole HTML page', 'This hook is used to filter the whole HTML page before it is rendered (only front)', '1'),
(NULL, 'displayAfterProductThumbs', 'Display extra content below product thumbs', 'This hook displays new elements below product images ex. additional media', '1'),
(NULL, 'actionDispatcherBefore', 'Before dispatch', 'This hook is called at the beginning of the dispatch method of the Dispatcher', '1'),
(NULL, 'actionDispatcherAfter', 'After dispatch', 'This hook is called at the end of the dispatch method of the Dispatcher', '1'),
(NULL, 'actionClearCache', 'Clear smarty cache', 'This hook is called when the cache of the theme is cleared', '1'),
(NULL, 'actionClearCompileCache', 'Clear smarty compile cache', 'This hook is called when smarty''s compile cache is cleared', '1'),
(NULL, 'actionClearSf2Cache', 'Clear Sf2 cache', 'This hook is called when the Symfony cache is cleared', '1'),
(NULL, 'filterProductSearch', 'Filter search products result', 'This hook is called in order to allow to modify search product result', '1'),
(NULL, 'actionProductSearchAfter', 'Event triggered after search product completed', 'This hook is called after the product search. Parameters are already filtered', '1'),
(NULL, 'actionEmailSendBefore', 'Before sending an email', 'This hook is used to filter the content or the metadata of an email before sending it or even prevent its sending', '1'),
(NULL, 'displayProductPageDrawer', 'Product Page Drawer', 'This hook displays content in the right sidebar of the product page', '1')
ON DUPLICATE KEY UPDATE `title` = VALUES(`title`), `description` = VALUES(`description`);
DELETE FROM `PREFIX_configuration` WHERE `name` IN ('PS_META_KEYWORDS');
INSERT INTO `PREFIX_operating_system` (`name`) VALUES ('Windows 8.1'), ('Windows 10');
/* UPDATE TO DOCTRINE */
ALTER TABLE `PREFIX_attribute` CHANGE `id_attribute` `id_attribute` INT(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `PREFIX_attribute` CHANGE `id_attribute_group` `id_attribute_group` INT(11) NOT NULL;
ALTER TABLE `PREFIX_attribute` ADD KEY `attribute_group` (`id_attribute_group`);
ALTER TABLE `PREFIX_attribute` DROP KEY IDX_6C3355F967A664FB;
ALTER TABLE `PREFIX_attribute_group` CHANGE `id_attribute_group` `id_attribute_group` INT(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `PREFIX_attribute_group_lang` CHANGE `id_attribute_group` `id_attribute_group` INT(11) NOT NULL;
ALTER TABLE `PREFIX_attribute_group_lang` CHANGE `id_lang` `id_lang` INT(11) NOT NULL;
ALTER TABLE `PREFIX_attribute_group_lang` DROP FOREIGN KEY FK_4653726CBA299860;
ALTER TABLE `PREFIX_attribute_group_lang` DROP KEY IDX_4653726CBA299860;
ALTER TABLE `PREFIX_attribute_group_shop` CHANGE `id_attribute_group` `id_attribute_group` INT(11) NOT NULL;
ALTER TABLE `PREFIX_attribute_group_shop` CHANGE `id_shop` `id_shop` INT(11) NOT NULL;
ALTER TABLE `PREFIX_attribute_lang` CHANGE `id_attribute` `id_attribute` INT(11) NOT NULL;
ALTER TABLE `PREFIX_attribute_lang` CHANGE `id_lang` `id_lang` INT(11) NOT NULL;
ALTER TABLE `PREFIX_attribute_lang` DROP FOREIGN KEY FK_3ABE46A7BA299860;
ALTER TABLE `PREFIX_attribute_lang` DROP KEY IDX_3ABE46A7BA299860;
ALTER TABLE `PREFIX_attribute_shop` CHANGE `id_attribute` `id_attribute` INT(11) NOT NULL;
ALTER TABLE `PREFIX_attribute_shop` CHANGE `id_shop` `id_shop` INT(11) NOT NULL;
ALTER TABLE `PREFIX_lang_shop` CHANGE `id_lang` `id_lang` INT(11) NOT NULL;
ALTER TABLE `PREFIX_lang_shop` CHANGE `id_shop` `id_shop` INT(11) NOT NULL;
ALTER TABLE `PREFIX_shop` CHANGE `id_shop` `id_shop` INT(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `PREFIX_shop` CHANGE `id_shop_group` `id_shop_group` INT(11) NOT NULL;
ALTER TABLE `PREFIX_shop_group` CHANGE `id_shop_group` `id_shop_group` INT(11) NOT NULL AUTO_INCREMENT;
/* PHP:add_missing_unique_key_from_authorization_role(); */;
ALTER TABLE `PREFIX_lang` CHANGE `id_lang` `id_lang` INT(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `PREFIX_lang` CHANGE `active` `active` tinyint(1) NOT NULL;
ALTER TABLE `PREFIX_tab` COLLATE=utf8_unicode_ci;
ALTER TABLE `PREFIX_tab` CHANGE `id_tab` `id_tab` INT(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `PREFIX_tab` CHANGE `active` `active` TINYINT(1) NOT NULL;
ALTER TABLE `PREFIX_tab` CHANGE `hide_host_mode` `hide_host_mode` TINYINT(1) NOT NULL;
ALTER TABLE `PREFIX_tab` CHANGE `icon` `icon` VARCHAR(32) DEFAULT NULL;
ALTER TABLE `PREFIX_tab` CHANGE `position` `position` int(11) NOT NULL;
ALTER TABLE `PREFIX_tab` CHANGE `module` `module` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL;
ALTER TABLE `PREFIX_tab` CHANGE `position` `position` int(11) NOT NULL;
ALTER TABLE `PREFIX_tab` CHANGE `class_name` `class_name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL;
ALTER TABLE `PREFIX_tab` CHANGE `icon` `icon` varchar(32) NOT NULL;
ALTER TABLE `PREFIX_tab` DROP KEY `class_name`;
ALTER TABLE `PREFIX_tab` DROP KEY `id_parent`;
ALTER TABLE `PREFIX_tab_lang` COLLATE=utf8_unicode_ci;
ALTER TABLE `PREFIX_tab_lang` CHANGE `id_tab` `id_tab` INT(11) NOT NULL;
ALTER TABLE `PREFIX_tab_lang` CHANGE `id_lang` `id_lang` INT(11) NOT NULL;
ALTER TABLE `PREFIX_tab_lang` CHANGE `name` `name` varchar(128) NOT NULL;
ALTER TABLE `PREFIX_tab_lang` ADD KEY `IDX_CFD9262DED47AB56` (`id_tab`);
ALTER TABLE `PREFIX_translation` CHANGE `domain` `domain` varchar(80) NOT NULL;
ALTER TABLE `PREFIX_translation` CHANGE `theme` `theme` varchar(32) DEFAULT NULL;
ALTER TABLE `PREFIX_translation` CHANGE `key` `key` text COLLATE utf8_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_translation` CHANGE `translation` `translation` text COLLATE utf8_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_translation` DROP INDEX `theme`;

View File

@@ -0,0 +1,17 @@
SET NAMES 'utf8';
ALTER TABLE `PREFIX_address` CHANGE `company` `company` VARCHAR(255) DEFAULT NULL;
ALTER TABLE `PREFIX_attribute` DROP FOREIGN KEY FK_6C3355F967A664FB;
ALTER TABLE `PREFIX_attribute_group_lang` DROP FOREIGN KEY FK_4653726C67A664FB;
ALTER TABLE `PREFIX_attribute_group_shop` DROP FOREIGN KEY FK_DB30BAAC274A50A0;
ALTER TABLE `PREFIX_attribute_group_shop` DROP FOREIGN KEY FK_DB30BAAC67A664FB;
ALTER TABLE `PREFIX_attribute_lang` DROP FOREIGN KEY FK_3ABE46A77A4F53DC;
ALTER TABLE `PREFIX_attribute_shop` DROP FOREIGN KEY FK_A7DD8E67274A50A0;
ALTER TABLE `PREFIX_attribute_shop` DROP FOREIGN KEY FK_A7DD8E677A4F53DC;
ALTER TABLE `PREFIX_lang_shop` DROP FOREIGN KEY FK_2F43BFC7274A50A0;
ALTER TABLE `PREFIX_lang_shop` DROP FOREIGN KEY FK_2F43BFC7BA299860;
ALTER TABLE `PREFIX_shop` DROP FOREIGN KEY FK_CBDFBB9EF5C9E40;
ALTER TABLE `PREFIX_tab_lang` DROP FOREIGN KEY FK_CFD9262DED47AB56;
ALTER TABLE `PREFIX_translation` DROP FOREIGN KEY FK_ADEBEB36BA299860;
ALTER TABLE `PREFIX_tab` CHANGE icon icon VARCHAR(32) DEFAULT NULL;

View File

@@ -0,0 +1,49 @@
SET SESSION sql_mode = '';
SET NAMES 'utf8';
ALTER TABLE `PREFIX_store` MODIFY `hours` text;
INSERT INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `position`) VALUES
(NULL, 'displayAdminProductsMainStepLeftColumnMiddle', 'Display new elements in back office product page, left column of the Basic settings tab', 'This hook launches modules when the back office product page is displayed', '1'),
(NULL, 'displayAdminProductsMainStepLeftColumnBottom', 'Display new elements in back office product page, left column of the Basic settings tab', 'This hook launches modules when the back office product page is displayed', '1'),
(NULL, 'displayAdminProductsMainStepRightColumnBottom', 'Display new elements in back office product page, right column of the Basic settings tab', 'This hook launches modules when the back office product page is displayed', '1'),
(NULL, 'displayAdminProductsQuantitiesStepBottom', 'Display new elements in back office product page, Quantities/Combinations tab', 'This hook launches modules when the back office product page is displayed', '1'),
(NULL, 'displayAdminProductsPriceStepBottom', 'Display new elements in back office product page, Price tab', 'This hook launches modules when the back office product page is displayed', '1'),
(NULL, 'displayAdminProductsOptionsStepTop', 'Display new elements in back office product page, Options tab', 'This hook launches modules when the back office product page is displayed', '1'),
(NULL, 'displayAdminProductsOptionsStepBottom', 'Display new elements in back office product page, Options tab', 'This hook launches modules when the back office product page is displayed', '1'),
(NULL, 'displayAdminProductsSeoStepBottom', 'Display new elements in back office product page, SEO tab', 'This hook launches modules when the back office product page is displayed', '1'),
(NULL, 'displayAdminProductsShippingStepBottom', 'Display new elements in back office product page, Shipping tab', 'This hook launches modules when the back office product page is displayed', '1'),
(NULL, 'displayAdminProductsCombinationBottom', 'Display new elements in back office product page, Combination tab', 'This hook launches modules when the back office product page is displayed', '1'),
(NULL, 'displayWrapperTop', 'Main wrapper section (top)', 'This hook displays new elements in the top of the main wrapper', '1'),
(NULL, 'displayWrapperBottom', 'Main wrapper section (bottom)', 'This hook displays new elements in the bottom of the main wrapper', '1'),
(NULL, 'displayContentWrapperTop', 'Content wrapper section (top)', 'This hook displays new elements in the top of the content wrapper', '1'),
(NULL, 'displayContentWrapperBottom', 'Content wrapper section (bottom)', 'This hook displays new elements in the bottom of the content wrapper', '1')
ON DUPLICATE KEY UPDATE `title` = VALUES(`title`), `description` = VALUES(`description`);
/* PHP:drop_column_from_product_lang_if_exists(); */;
ALTER TABLE `PREFIX_product` CHANGE `isbn` `isbn` VARCHAR(32) NULL DEFAULT NULL;
ALTER TABLE `PREFIX_order_detail` CHANGE `product_isbn` `product_isbn` VARCHAR(32) NULL DEFAULT NULL;
ALTER TABLE `PREFIX_product_attribute` CHANGE `isbn` `isbn` VARCHAR(32) NULL DEFAULT NULL;
ALTER TABLE `PREFIX_stock` CHANGE `isbn` `isbn` VARCHAR(32) NULL DEFAULT NULL;
ALTER TABLE `PREFIX_supply_order_detail` CHANGE `isbn` `isbn` VARCHAR(32) NULL DEFAULT NULL;
ALTER TABLE `PREFIX_stock_available` ADD `physical_quantity` INT NOT NULL DEFAULT '0' AFTER `quantity`;
ALTER TABLE `PREFIX_stock_available` ADD `reserved_quantity` INT NOT NULL DEFAULT '0' AFTER `physical_quantity`;
ALTER TABLE `PREFIX_stock_mvt` COLLATE=utf8_unicode_ci;
ALTER TABLE `PREFIX_stock_mvt` CHANGE `id_stock` `id_stock` INT(11) NOT NULL COMMENT 'since ps 1.7 corresponding to id_stock_available';
ALTER TABLE `PREFIX_stock_mvt` CHANGE `id_stock_mvt` `id_stock_mvt` BIGINT(20) NOT NULL AUTO_INCREMENT;
ALTER TABLE `PREFIX_stock_mvt` CHANGE `id_order` `id_order` INT(11) DEFAULT NULL;
ALTER TABLE `PREFIX_stock_mvt` CHANGE `id_supply_order` `id_supply_order` INT(11) DEFAULT NULL;
ALTER TABLE `PREFIX_stock_mvt` CHANGE `id_stock_mvt_reason` `id_stock_mvt_reason` INT(11) NOT NULL;
ALTER TABLE `PREFIX_stock_mvt` CHANGE `id_employee` `id_employee` INT(11) NOT NULL;
ALTER TABLE `PREFIX_stock_mvt` CHANGE `physical_quantity` `physical_quantity` INT(11) NOT NULL;
ALTER TABLE `PREFIX_stock_mvt` CHANGE `referer` `referer` BIGINT(20) DEFAULT NULL;
ALTER TABLE `PREFIX_stock_mvt` CHANGE `employee_lastname` `employee_lastname` varchar(32) DEFAULT NULL;
ALTER TABLE `PREFIX_stock_mvt` CHANGE `employee_firstname` `employee_firstname` varchar(32) DEFAULT NULL;
ALTER TABLE `PREFIX_stock_mvt` CHANGE `sign` `sign` smallint(6) NOT NULL DEFAULT '1';
UPDATE `PREFIX_configuration` SET `value` = 0 WHERE `name` = "PS_ADVANCED_STOCK_MANAGEMENT";
/* PHP:add_new_status_stock(); */;
ALTER TABLE `PREFIX_carrier_lang` CHANGE `delay` `delay` varchar(512) DEFAULT NULL;

View File

@@ -0,0 +1,5 @@
SET SESSION sql_mode = '';
SET NAMES 'utf8';
ALTER TABLE `PREFIX_search_index` DROP KEY `id_product`;
ALTER TABLE `PREFIX_search_index` ADD KEY `id_product` (`id_product`,`weight`);

View File

@@ -0,0 +1,57 @@
SET SESSION sql_mode = '';
SET NAMES 'utf8';
UPDATE `PREFIX_tab` SET `position` = 0 WHERE `class_name` = 'AdminZones' AND `position` = '1';
UPDATE `PREFIX_tab` SET `position` = 1 WHERE `class_name` = 'AdminCountries' AND `position` = '0';
/* PHP:ps_1730_add_quick_access_evaluation_catalog(); */;
/* PHP:ps_1730_move_some_aeuc_configuration_to_core(); */;
ALTER TABLE `PREFIX_product` ADD `low_stock_threshold` INT(10) NULL DEFAULT NULL AFTER `minimal_quantity`;
ALTER TABLE `PREFIX_product` ADD `additional_delivery_times` tinyint(1) unsigned NOT NULL DEFAULT '1' AFTER `out_of_stock`;
ALTER TABLE `PREFIX_product_lang` ADD `delivery_in_stock` varchar(255) DEFAULT NULL;
ALTER TABLE `PREFIX_product_lang` ADD `delivery_out_stock` varchar(255) DEFAULT NULL;
ALTER TABLE `PREFIX_product_shop` ADD `low_stock_threshold` INT(10) NULL DEFAULT NULL AFTER `minimal_quantity`;
ALTER TABLE `PREFIX_product_attribute` ADD `low_stock_threshold` INT(10) NULL DEFAULT NULL AFTER `minimal_quantity`;
ALTER TABLE `PREFIX_product_attribute_shop` ADD `low_stock_threshold` INT(10) NULL DEFAULT NULL AFTER `minimal_quantity`;
ALTER TABLE `PREFIX_product` ADD `low_stock_alert` TINYINT(1) NOT NULL DEFAULT 0 AFTER `low_stock_threshold`;
ALTER TABLE `PREFIX_product_shop` ADD `low_stock_alert` TINYINT(1) NOT NULL DEFAULT 0 AFTER `low_stock_threshold`;
ALTER TABLE `PREFIX_product_attribute` ADD `low_stock_alert` TINYINT(1) NOT NULL DEFAULT 0 AFTER `low_stock_threshold`;
ALTER TABLE `PREFIX_product_attribute_shop` ADD `low_stock_alert` TINYINT(1) NOT NULL DEFAULT 0 AFTER `low_stock_threshold`;
CREATE TABLE IF NOT EXISTS `PREFIX_store_lang` (
`id_store` int(11) unsigned NOT NULL,
`id_lang` int(11) unsigned NOT NULL,
`name` varchar(255) NOT NULL,
`address1` varchar(255) NOT NULL,
`address2` varchar(255) DEFAULT NULL,
`hours` text,
`note` text,
PRIMARY KEY (`id_store`, `id_lang`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
/* PHP:ps_1730_migrate_data_from_store_to_store_lang_and_clean_store(); */;
ALTER TABLE `PREFIX_store` DROP `name`, DROP `address1`, DROP `address2`, DROP `hours`, DROP `note`;
ALTER TABLE `PREFIX_feature_product` DROP PRIMARY KEY, ADD PRIMARY KEY (`id_feature`, `id_product`, `id_feature_value`);
ALTER TABLE `PREFIX_customization_field` ADD `is_deleted` TINYINT(1) NOT NULL DEFAULT '0';
INSERT INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `position`) VALUES
(NULL, 'displayAdminCustomersAddressesItemAction', 'Display new elements in the Back Office, tab AdminCustomers, Addresses actions', 'This hook launches modules when the Addresses list into the AdminCustomers tab is displayed in the Back Office', '1'),
(NULL, 'displayDashboardToolbarTopMenu', 'Display new elements in back office page with a dashboard, on top Menu', 'This hook launches modules when a page with a dashboard is displayed', '1'),
(NULL, 'displayDashboardToolbarIcons', 'Display new elements in back office page with dashboard, on icons list', 'This hook launches modules when the back office with dashboard is displayed', '1')
ON DUPLICATE KEY UPDATE `title` = VALUES(`title`), `description` = VALUES(`description`);
INSERT IGNORE INTO `PREFIX_authorization_role` (`slug`) VALUES
('ROLE_MOD_TAB_DEFAULT_CREATE'),
('ROLE_MOD_TAB_DEFAULT_READ'),
('ROLE_MOD_TAB_DEFAULT_UPDATE'),
('ROLE_MOD_TAB_DEFAULT_DELETE');

View File

@@ -0,0 +1,16 @@
SET SESSION sql_mode = '';
SET NAMES 'utf8';
ALTER TABLE `PREFIX_order_detail` DROP KEY product_id, ADD KEY product_id (product_id, product_attribute_id);
INSERT INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `position`) VALUES
(NULL, 'actionAdministrationPageForm', 'Manage Administration Page form fields', 'This hook adds, update or remove fields of the Administration Page form', '1'),
(NULL, 'actionAdministrationPageFormSave', 'Processing Administration page form', 'This hook is called when the Administration Page form is processed', '1'),
(NULL, 'actionPerformancePageForm', 'Manage Performance Page form fields', 'This hook adds, update or remove fields of the Performance Page form', '1'),
(NULL, 'actionPerformancePageFormSave', 'Processing Performance page form', 'This hook is called when the Performance Page form is processed', '1'),
(NULL, 'actionMaintenancePageForm', 'Manage Maintenance Page form fields', 'This hook adds, update or remove fields of the Maintenance Page form', '1'),
(NULL, 'actionMaintenancePageFormSave', 'Processing Maintenance page form', 'This hook is called when the Maintenance Page form is processed', '1'),
(NULL, 'displayAdminEndContent', 'Administration end of content', 'This hook is displayed at the end of the main content, before the footer', '1')
ON DUPLICATE KEY UPDATE `title` = VALUES(`title`), `description` = VALUES(`description`);
/* PHP:ps_1740_update_module_tabs(); */;

View File

@@ -0,0 +1,4 @@
SET SESSION sql_mode = '';
SET NAMES 'utf8';
ALTER TABLE `PREFIX_cart_rule` ADD KEY `date_from` (`date_from`), ADD KEY `date_to` (`date_to`);

View File

@@ -0,0 +1,4 @@
SET SESSION sql_mode = '';
SET NAMES 'utf8';
UPDATE `PREFIX_employee` SET `bo_css` = "theme.css";

View File

@@ -0,0 +1,99 @@
SET SESSION sql_mode='';
SET NAMES 'utf8';
/* PHP:add_supplier_manufacturer_routes(); */;
/* PHP:ps_1750_update_module_tabs(); */;
ALTER TABLE `PREFIX_cms_lang`
ADD `head_seo_title` varchar(255) DEFAULT NULL AFTER `meta_title`,
CHANGE `meta_title` `meta_title` VARCHAR(255) NOT NULL,
CHANGE `meta_description` `meta_description` VARCHAR(512) DEFAULT NULL;
ALTER TABLE `PREFIX_stock_available`
ADD `location` VARCHAR(255) NOT NULL DEFAULT '' AFTER `out_of_stock`;
ALTER TABLE `PREFIX_store`
CHANGE `email` `email` VARCHAR(255) DEFAULT NULL;
ALTER TABLE `PREFIX_contact`
CHANGE `email` `email` VARCHAR(255) NOT NULL;
ALTER TABLE `PREFIX_contact_lang`
CHANGE `name` `name` varchar(255) NOT NULL;
ALTER TABLE `PREFIX_category_lang`
CHANGE `meta_title` `meta_title` VARCHAR(255) DEFAULT NULL,
CHANGE `meta_description` `meta_description` VARCHAR(512) DEFAULT NULL;
ALTER TABLE `PREFIX_cms_category_lang`
CHANGE `meta_title` `meta_title` VARCHAR(255) DEFAULT NULL,
CHANGE `meta_description` `meta_description` VARCHAR(512) DEFAULT NULL;
ALTER TABLE `PREFIX_customer`
CHANGE `company` `company` VARCHAR(255),
CHANGE `email` `email` VARCHAR(255) NOT NULL,
CHANGE `passwd` `passwd` VARCHAR(255) NOT NULL;
ALTER TABLE `PREFIX_manufacturer_lang`
CHANGE `meta_title` `meta_title` VARCHAR(255) DEFAULT NULL,
CHANGE `meta_description` `meta_description` VARCHAR(512) DEFAULT NULL;
ALTER TABLE `PREFIX_employee`
CHANGE `firstname` `firstname` VARCHAR(255) NOT NULL,
CHANGE `email` `email` VARCHAR(255) NOT NULL,
CHANGE `passwd` `passwd` VARCHAR(255) NOT NULL,
CHANGE `lastname` `lastname` VARCHAR(255) NOT NULL;
ALTER TABLE `PREFIX_referrer`
CHANGE `passwd` `passwd` VARCHAR(255) DEFAULT NULL;
ALTER TABLE `PREFIX_supply_order_history`
CHANGE `employee_lastname` `employee_lastname` VARCHAR(255) DEFAULT '',
CHANGE `employee_firstname` `employee_firstname` VARCHAR(255) DEFAULT '';
ALTER TABLE `PREFIX_supply_order_receipt_history`
CHANGE `employee_firstname` `employee_firstname` VARCHAR(255) DEFAULT '';
ALTER TABLE `PREFIX_supplier_lang`
CHANGE `meta_description` `meta_description` VARCHAR(512) DEFAULT NULL,
CHANGE `meta_title` `meta_title` VARCHAR(255) DEFAULT NULL;
ALTER TABLE `PREFIX_order_detail`
CHANGE `product_reference` `product_reference` varchar(64) DEFAULT NULL;
ALTER TABLE `PREFIX_product`
CHANGE `supplier_reference` `supplier_reference` varchar(64) DEFAULT NULL;
ALTER TABLE `PREFIX_product_attribute`
CHANGE `reference` `reference` varchar(64) DEFAULT NULL,
CHANGE `supplier_reference` `supplier_reference` varchar(64) DEFAULT NULL;
ALTER TABLE `PREFIX_warehouse`
CHANGE `reference` `reference` varchar(64) DEFAULT NULL;
ALTER TABLE `PREFIX_stock`
CHANGE `reference` `reference` varchar(64) NOT NULL;
ALTER TABLE `PREFIX_supply_order_detail`
CHANGE `reference` `reference` varchar(64) NOT NULL,
CHANGE `supplier_reference` `supplier_reference` varchar(64) NOT NULL;
ALTER TABLE `PREFIX_product_supplier`
CHANGE `product_supplier_reference` `product_supplier_reference` varchar(64) DEFAULT NULL;
ALTER TABLE `PREFIX_product_lang`
CHANGE `meta_description` `meta_description` varchar(512) DEFAULT NULL,
CHANGE `meta_keywords` `meta_keywords` varchar(255) DEFAULT NULL;
ALTER TABLE `PREFIX_customer_thread`
CHANGE `email` `email` varchar(255) NOT NULL;
ALTER TABLE `PREFIX_attribute_group_lang`
ADD KEY `IDX_4653726CBA299860` (`id_lang`);
ALTER TABLE `PREFIX_attribute_lang`
ADD KEY `IDX_3ABE46A7BA299860` (`id_lang`);
ALTER TABLE `PREFIX_tab_lang`
ADD KEY `IDX_CFD9262DBA299860` (`id_lang`);

View File

@@ -0,0 +1,19 @@
SET SESSION sql_mode='';
SET NAMES 'utf8';
ALTER TABLE `PREFIX_supply_order_receipt_history`
CHANGE `employee_lastname` `employee_lastname` VARCHAR(255) DEFAULT '';
ALTER TABLE `PREFIX_product`
CHANGE `reference` `reference` varchar(64) DEFAULT NULL;
ALTER TABLE `PREFIX_order_detail`
CHANGE `product_supplier_reference` `product_supplier_reference` varchar(64) DEFAULT NULL;
-- Update default links in quick access
UPDATE `PREFIX_quick_access` SET `link` = "index.php/improve/modules/manage"
WHERE link = "index.php/module/manage";
UPDATE `PREFIX_quick_access` SET `link` = "index.php/sell/catalog/products/new"
WHERE link = "index.php/product/new";
/* PHP:ps_1751_update_module_sf_tab(); */;

View File

@@ -0,0 +1,279 @@
SET SESSION sql_mode = '';
SET NAMES 'utf8';
ALTER TABLE `PREFIX_currency` ADD `numeric_iso_code` varchar(3) DEFAULT NULL AFTER `iso_code`;
ALTER TABLE `PREFIX_currency` ADD `precision` int(2) NOT NULL DEFAULT 6 AFTER `numeric_iso_code`;
ALTER TABLE `PREFIX_currency` ADD KEY `currency_iso_code` (`iso_code`);
/* Localized currency information */
CREATE TABLE `PREFIX_currency_lang` (
`id_currency` int(10) unsigned NOT NULL,
`id_lang` int(10) unsigned NOT NULL,
`name` varchar(255) NOT NULL,
`symbol` varchar(255) NOT NULL,
PRIMARY KEY (`id_currency`,`id_lang`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
/* PHP:ps_1760_copy_data_from_currency_to_currency_lang(); */;
/* Module Manager tab should be the first tab in Modules Tab */
UPDATE `PREFIX_tab` SET `position` = 0 WHERE `class_name` = 'AdminModulesSf' AND `position`= 1;
UPDATE `PREFIX_tab` SET `position` = 1 WHERE `class_name` = 'AdminParentModulesCatalog' AND `position`= 0;
/* Fix Problem with missing lang entries in Configuration */
INSERT INTO `PREFIX_configuration_lang` (`id_configuration`, `id_lang`, `value`)
SELECT `id_configuration`, l.`id_lang`, `value`
FROM `PREFIX_configuration` c
JOIN `PREFIX_lang_shop` l on l.`id_shop` = COALESCE(c.`id_shop`, 1)
WHERE `name` IN (
'PS_DELIVERY_PREFIX',
'PS_INVOICE_PREFIX',
'PS_INVOICE_LEGAL_FREE_TEXT',
'PS_INVOICE_FREE_TEXT',
'PS_RETURN_PREFIX',
'PS_SEARCH_BLACKLIST',
'PS_CUSTOMER_SERVICE_SIGNATURE',
'PS_MAINTENANCE_TEXT',
'PS_LABEL_IN_STOCK_PRODUCTS',
'PS_LABEL_OOS_PRODUCTS_BOA',
'PS_LABEL_OOS_PRODUCTS_BOD'
)
AND NOT EXISTS (SELECT 1 FROM `PREFIX_configuration_lang` WHERE `id_configuration` = c.`id_configuration`);
/* PHP:ps_1760_update_configuration(); */;
/* PHP:ps_1760_update_tabs(); */;
/* Insert new hooks */
INSERT INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `position`) VALUES
(NULL, 'actionListMailThemes', 'List the available email themes and layouts', 'This hook allows to add/remove available email themes (ThemeInterface) and/or to add/remove their layouts (LayoutInterface)', '1'),
(NULL, 'actionGetMailThemeFolder', 'Define the folder of an email theme', 'This hook allows to change the folder of an email theme (useful if you theme is in a module for example)', '1'),
(NULL, 'actionBuildMailLayoutVariables', 'Build the variables used in email layout rendering', 'This hook allows to change the variables used when an email layout is rendered', '1'),
(NULL, 'actionGetMailLayoutTransformations', 'Define the transformation to apply on layout', 'This hook allows to add/remove TransformationInterface used to generate an email layout', '1'),
(NULL, 'actionSqlRequestFormBuilderModifier', 'Modify sql request identifiable object form', 'This hook allows to modify sql request identifiable object forms content by modifying form builder data or FormBuilder itself', '1 '),
(NULL, 'actionCustomerFormBuilderModifier', 'Modify customer identifiable object form', 'This hook allows to modify customer identifiable object forms content by modifying form builder data or FormBuilder itself', '1 '),
(NULL, 'actionLanguageFormBuilderModifier', 'Modify language identifiable object form', 'This hook allows to modify language identifiable object forms content by modifying form builder data or FormBuilder itself', '1 '),
(NULL, 'actionCurrencyFormBuilderModifier', 'Modify currency identifiable object form', 'This hook allows to modify currency identifiable object forms content by modifying form builder data or FormBuilder itself', '1 '),
(NULL, 'actionWebserviceKeyFormBuilderModifier', 'Modify webservice key identifiable object form', 'This hook allows to modify webservice key identifiable object forms content by modifying form builder data or FormBuilder itself', '1 '),
(NULL, 'actionMetaFormBuilderModifier', 'Modify meta identifiable object form', 'This hook allows to modify meta identifiable object forms content by modifying form builder data or FormBuilder itself', '1 '),
(NULL, 'actionCategoryFormBuilderModifier', 'Modify category identifiable object form', 'This hook allows to modify category identifiable object forms content by modifying form builder data or FormBuilder itself', '1 '),
(NULL, 'actionRootCategoryFormBuilderModifier', 'Modify root category identifiable object form', 'This hook allows to modify root category identifiable object forms content by modifying form builder data or FormBuilder itself', '1 '),
(NULL, 'actionContactFormBuilderModifier', 'Modify contact identifiable object form', 'This hook allows to modify contact identifiable object forms content by modifying form builder data or FormBuilder itself', '1 '),
(NULL, 'actionCmsPageCategoryFormBuilderModifier', 'Modify cms page category identifiable object form', 'This hook allows to modify cms page category identifiable object forms content by modifying form builder data or FormBuilder itself', '1 '),
(NULL, 'actionTaxFormBuilderModifier', 'Modify tax identifiable object form', 'This hook allows to modify tax identifiable object forms content by modifying form builder data or FormBuilder itself', '1 '),
(NULL, 'actionManufacturerFormBuilderModifier', 'Modify manufacturer identifiable object form', 'This hook allows to modify manufacturer identifiable object forms content by modifying form builder data or FormBuilder itself', '1 '),
(NULL, 'actionEmployeeFormBuilderModifier', 'Modify employee identifiable object form', 'This hook allows to modify employee identifiable object forms content by modifying form builder data or FormBuilder itself', '1 '),
(NULL, 'actionProfileFormBuilderModifier', 'Modify profile identifiable object form', 'This hook allows to modify profile identifiable object forms content by modifying form builder data or FormBuilder itself', '1 '),
(NULL, 'actionCmsPageFormBuilderModifier', 'Modify cms page identifiable object form', 'This hook allows to modify cms page identifiable object forms content by modifying form builder data or FormBuilder itself', '1 '),
(NULL, 'actionManufacturerAddressFormBuilderModifier', 'Modify manufacturer address identifiable object form', 'This hook allows to modify manufacturer address identifiable object forms content by modifying form builder data or FormBuilder itself', '1 '),
(NULL, 'actionBeforeUpdateSqlRequestFormHandler', 'Modify sql request identifiable object data before updating it', 'This hook allows to modify sql request identifiable object forms data before it was updated', '1 '),
(NULL, 'actionBeforeUpdateCustomerFormHandler', 'Modify customer identifiable object data before updating it', 'This hook allows to modify customer identifiable object forms data before it was updated', '1 '),
(NULL, 'actionBeforeUpdateLanguageFormHandler', 'Modify language identifiable object data before updating it', 'This hook allows to modify language identifiable object forms data before it was updated', '1 '),
(NULL, 'actionBeforeUpdateCurrencyFormHandler', 'Modify currency identifiable object data before updating it', 'This hook allows to modify currency identifiable object forms data before it was updated', '1 '),
(NULL, 'actionBeforeUpdateWebserviceKeyFormHandler', 'Modify webservice key identifiable object data before updating it', 'This hook allows to modify webservice key identifiable object forms data before it was updated', '1 '),
(NULL, 'actionBeforeUpdateMetaFormHandler', 'Modify meta identifiable object data before updating it', 'This hook allows to modify meta identifiable object forms data before it was updated', '1 '),
(NULL, 'actionBeforeUpdateCategoryFormHandler', 'Modify category identifiable object data before updating it', 'This hook allows to modify category identifiable object forms data before it was updated', '1 '),
(NULL, 'actionBeforeUpdateRootCategoryFormHandler', 'Modify root category identifiable object data before updating it', 'This hook allows to modify root category identifiable object forms data before it was updated', '1 '),
(NULL, 'actionBeforeUpdateContactFormHandler', 'Modify contact identifiable object data before updating it', 'This hook allows to modify contact identifiable object forms data before it was updated', '1 '),
(NULL, 'actionBeforeUpdateCmsPageCategoryFormHandler', 'Modify cms page category identifiable object data before updating it', 'This hook allows to modify cms page category identifiable object forms data before it was updated', '1 '),
(NULL, 'actionBeforeUpdateTaxFormHandler', 'Modify tax identifiable object data before updating it', 'This hook allows to modify tax identifiable object forms data before it was updated', '1 '),
(NULL, 'actionBeforeUpdateManufacturerFormHandler', 'Modify manufacturer identifiable object data before updating it', 'This hook allows to modify manufacturer identifiable object forms data before it was updated', '1 '),
(NULL, 'actionBeforeUpdateEmployeeFormHandler', 'Modify employee identifiable object data before updating it', 'This hook allows to modify employee identifiable object forms data before it was updated', '1 '),
(NULL, 'actionBeforeUpdateProfileFormHandler', 'Modify profile identifiable object data before updating it', 'This hook allows to modify profile identifiable object forms data before it was updated', '1 '),
(NULL, 'actionBeforeUpdateCmsPageFormHandler', 'Modify cms page identifiable object data before updating it', 'This hook allows to modify cms page identifiable object forms data before it was updated', '1 '),
(NULL, 'actionBeforeUpdateManufacturerAddressFormHandler', 'Modify manufacturer address identifiable object data before updating it', 'This hook allows to modify manufacturer address identifiable object forms data before it was updated', '1 '),
(NULL, 'actionAfterUpdateSqlRequestFormHandler', 'Modify sql request identifiable object data after updating it', 'This hook allows to modify sql request identifiable object forms data after it was updated', '1 '),
(NULL, 'actionAfterUpdateCustomerFormHandler', 'Modify customer identifiable object data after updating it', 'This hook allows to modify customer identifiable object forms data after it was updated', '1 '),
(NULL, 'actionAfterUpdateLanguageFormHandler', 'Modify language identifiable object data after updating it', 'This hook allows to modify language identifiable object forms data after it was updated', '1 '),
(NULL, 'actionAfterUpdateCurrencyFormHandler', 'Modify currency identifiable object data after updating it', 'This hook allows to modify currency identifiable object forms data after it was updated', '1 '),
(NULL, 'actionAfterUpdateWebserviceKeyFormHandler', 'Modify webservice key identifiable object data after updating it', 'This hook allows to modify webservice key identifiable object forms data after it was updated', '1 '),
(NULL, 'actionAfterUpdateMetaFormHandler', 'Modify meta identifiable object data after updating it', 'This hook allows to modify meta identifiable object forms data after it was updated', '1 '),
(NULL, 'actionAfterUpdateCategoryFormHandler', 'Modify category identifiable object data after updating it', 'This hook allows to modify category identifiable object forms data after it was updated', '1 '),
(NULL, 'actionAfterUpdateRootCategoryFormHandler', 'Modify root category identifiable object data after updating it', 'This hook allows to modify root category identifiable object forms data after it was updated', '1 '),
(NULL, 'actionAfterUpdateContactFormHandler', 'Modify contact identifiable object data after updating it', 'This hook allows to modify contact identifiable object forms data after it was updated', '1 '),
(NULL, 'actionAfterUpdateCmsPageCategoryFormHandler', 'Modify cms page category identifiable object data after updating it', 'This hook allows to modify cms page category identifiable object forms data after it was updated', '1 '),
(NULL, 'actionAfterUpdateTaxFormHandler', 'Modify tax identifiable object data after updating it', 'This hook allows to modify tax identifiable object forms data after it was updated', '1 '),
(NULL, 'actionAfterUpdateManufacturerFormHandler', 'Modify manufacturer identifiable object data after updating it', 'This hook allows to modify manufacturer identifiable object forms data after it was updated', '1 '),
(NULL, 'actionAfterUpdateEmployeeFormHandler', 'Modify employee identifiable object data after updating it', 'This hook allows to modify employee identifiable object forms data after it was updated', '1 '),
(NULL, 'actionAfterUpdateProfileFormHandler', 'Modify profile identifiable object data after updating it', 'This hook allows to modify profile identifiable object forms data after it was updated', '1 '),
(NULL, 'actionAfterUpdateCmsPageFormHandler', 'Modify cms page identifiable object data after updating it', 'This hook allows to modify cms page identifiable object forms data after it was updated', '1 '),
(NULL, 'actionAfterUpdateManufacturerAddressFormHandler', 'Modify manufacturer address identifiable object data after updating it', 'This hook allows to modify manufacturer address identifiable object forms data after it was updated', '1 '),
(NULL, 'actionBeforeCreateSqlRequestFormHandler', 'Modify sql request identifiable object data before creating it', 'This hook allows to modify sql request identifiable object forms data before it was created', '1 '),
(NULL, 'actionBeforeCreateCustomerFormHandler', 'Modify customer identifiable object data before creating it', 'This hook allows to modify customer identifiable object forms data before it was created', '1 '),
(NULL, 'actionBeforeCreateLanguageFormHandler', 'Modify language identifiable object data before creating it', 'This hook allows to modify language identifiable object forms data before it was created', '1 '),
(NULL, 'actionBeforeCreateCurrencyFormHandler', 'Modify currency identifiable object data before creating it', 'This hook allows to modify currency identifiable object forms data before it was created', '1 '),
(NULL, 'actionBeforeCreateWebserviceKeyFormHandler', 'Modify webservice key identifiable object data before creating it', 'This hook allows to modify webservice key identifiable object forms data before it was created', '1 '),
(NULL, 'actionBeforeCreateMetaFormHandler', 'Modify meta identifiable object data before creating it', 'This hook allows to modify meta identifiable object forms data before it was created', '1 '),
(NULL, 'actionBeforeCreateCategoryFormHandler', 'Modify category identifiable object data before creating it', 'This hook allows to modify category identifiable object forms data before it was created', '1 '),
(NULL, 'actionBeforeCreateRootCategoryFormHandler', 'Modify root category identifiable object data before creating it', 'This hook allows to modify root category identifiable object forms data before it was created', '1 '),
(NULL, 'actionBeforeCreateContactFormHandler', 'Modify contact identifiable object data before creating it', 'This hook allows to modify contact identifiable object forms data before it was created', '1 '),
(NULL, 'actionBeforeCreateCmsPageCategoryFormHandler', 'Modify cms page category identifiable object data before creating it', 'This hook allows to modify cms page category identifiable object forms data before it was created', '1 '),
(NULL, 'actionBeforeCreateTaxFormHandler', 'Modify tax identifiable object data before creating it', 'This hook allows to modify tax identifiable object forms data before it was created', '1 '),
(NULL, 'actionBeforeCreateManufacturerFormHandler', 'Modify manufacturer identifiable object data before creating it', 'This hook allows to modify manufacturer identifiable object forms data before it was created', '1 '),
(NULL, 'actionBeforeCreateEmployeeFormHandler', 'Modify employee identifiable object data before creating it', 'This hook allows to modify employee identifiable object forms data before it was created', '1 '),
(NULL, 'actionBeforeCreateProfileFormHandler', 'Modify profile identifiable object data before creating it', 'This hook allows to modify profile identifiable object forms data before it was created', '1 '),
(NULL, 'actionBeforeCreateCmsPageFormHandler', 'Modify cms page identifiable object data before creating it', 'This hook allows to modify cms page identifiable object forms data before it was created', '1 '),
(NULL, 'actionBeforeCreateManufacturerAddressFormHandler', 'Modify manufacturer address identifiable object data before creating it', 'This hook allows to modify manufacturer address identifiable object forms data before it was created', '1 '),
(NULL, 'actionAfterCreateSqlRequestFormHandler', 'Modify sql request identifiable object data after creating it', 'This hook allows to modify sql request identifiable object forms data after it was created', '1 '),
(NULL, 'actionAfterCreateCustomerFormHandler', 'Modify customer identifiable object data after creating it', 'This hook allows to modify customer identifiable object forms data after it was created', '1 '),
(NULL, 'actionAfterCreateLanguageFormHandler', 'Modify language identifiable object data after creating it', 'This hook allows to modify language identifiable object forms data after it was created', '1 '),
(NULL, 'actionAfterCreateCurrencyFormHandler', 'Modify currency identifiable object data after creating it', 'This hook allows to modify currency identifiable object forms data after it was created', '1 '),
(NULL, 'actionAfterCreateWebserviceKeyFormHandler', 'Modify webservice key identifiable object data after creating it', 'This hook allows to modify webservice key identifiable object forms data after it was created', '1 '),
(NULL, 'actionAfterCreateMetaFormHandler', 'Modify meta identifiable object data after creating it', 'This hook allows to modify meta identifiable object forms data after it was created', '1 '),
(NULL, 'actionAfterCreateCategoryFormHandler', 'Modify category identifiable object data after creating it', 'This hook allows to modify category identifiable object forms data after it was created', '1 '),
(NULL, 'actionAfterCreateRootCategoryFormHandler', 'Modify root category identifiable object data after creating it', 'This hook allows to modify root category identifiable object forms data after it was created', '1 '),
(NULL, 'actionAfterCreateContactFormHandler', 'Modify contact identifiable object data after creating it', 'This hook allows to modify contact identifiable object forms data after it was created', '1 '),
(NULL, 'actionAfterCreateCmsPageCategoryFormHandler', 'Modify cms page category identifiable object data after creating it', 'This hook allows to modify cms page category identifiable object forms data after it was created', '1 '),
(NULL, 'actionAfterCreateTaxFormHandler', 'Modify tax identifiable object data after creating it', 'This hook allows to modify tax identifiable object forms data after it was created', '1 '),
(NULL, 'actionAfterCreateManufacturerFormHandler', 'Modify manufacturer identifiable object data after creating it', 'This hook allows to modify manufacturer identifiable object forms data after it was created', '1 '),
(NULL, 'actionAfterCreateEmployeeFormHandler', 'Modify employee identifiable object data after creating it', 'This hook allows to modify employee identifiable object forms data after it was created', '1 '),
(NULL, 'actionAfterCreateProfileFormHandler', 'Modify profile identifiable object data after creating it', 'This hook allows to modify profile identifiable object forms data after it was created', '1 '),
(NULL, 'actionAfterCreateCmsPageFormHandler', 'Modify cms page identifiable object data after creating it', 'This hook allows to modify cms page identifiable object forms data after it was created', '1 '),
(NULL, 'actionAfterCreateManufacturerAddressFormHandler', 'Modify manufacturer address identifiable object data after creating it', 'This hook allows to modify manufacturer address identifiable object forms data after it was created', '1 '),
(NULL, 'actionShippingPreferencesPageForm', 'Modify shipping preferences page options form content', 'This hook allows to modify shipping preferences page options form FormBuilder', '1 '),
(NULL, 'actionOrdersInvoicesByDateForm', 'Modify orders invoices by date options form content', 'This hook allows to modify orders invoices by date options form FormBuilder', '1 '),
(NULL, 'actionOrdersInvoicesByStatusForm', 'Modify orders invoices by status options form content', 'This hook allows to modify orders invoices by status options form FormBuilder', '1 '),
(NULL, 'actionOrdersInvoicesOptionsForm', 'Modify orders invoices options options form content', 'This hook allows to modify orders invoices options options form FormBuilder', '1 '),
(NULL, 'actionCustomerPreferencesPageForm', 'Modify customer preferences page options form content', 'This hook allows to modify customer preferences page options form FormBuilder', '1 '),
(NULL, 'actionOrderPreferencesPageForm', 'Modify order preferences page options form content', 'This hook allows to modify order preferences page options form FormBuilder', '1 '),
(NULL, 'actionProductPreferencesPageForm', 'Modify product preferences page options form content', 'This hook allows to modify product preferences page options form FormBuilder', '1 '),
(NULL, 'actionGeneralPageForm', 'Modify general page options form content', 'This hook allows to modify general page options form FormBuilder', '1 '),
(NULL, 'actionLogsPageForm', 'Modify logs page options form content', 'This hook allows to modify logs page options form FormBuilder', '1 '),
(NULL, 'actionOrderDeliverySlipOptionsForm', 'Modify order delivery slip options options form content', 'This hook allows to modify order delivery slip options options form FormBuilder', '1 '),
(NULL, 'actionOrderDeliverySlipPdfForm', 'Modify order delivery slip pdf options form content', 'This hook allows to modify order delivery slip pdf options form FormBuilder', '1 '),
(NULL, 'actionGeolocationPageForm', 'Modify geolocation page options form content', 'This hook allows to modify geolocation page options form FormBuilder', '1 '),
(NULL, 'actionLocalizationPageForm', 'Modify localization page options form content', 'This hook allows to modify localization page options form FormBuilder', '1 '),
(NULL, 'actionPaymentPreferencesForm', 'Modify payment preferences options form content', 'This hook allows to modify payment preferences options form FormBuilder', '1 '),
(NULL, 'actionEmailConfigurationForm', 'Modify email configuration options form content', 'This hook allows to modify email configuration options form FormBuilder', '1 '),
(NULL, 'actionRequestSqlForm', 'Modify request sql options form content', 'This hook allows to modify request sql options form FormBuilder', '1 '),
(NULL, 'actionBackupForm', 'Modify backup options form content', 'This hook allows to modify backup options form FormBuilder', '1 '),
(NULL, 'actionWebservicePageForm', 'Modify webservice page options form content', 'This hook allows to modify webservice page options form FormBuilder', '1 '),
(NULL, 'actionMetaPageForm', 'Modify meta page options form content', 'This hook allows to modify meta page options form FormBuilder', '1 '),
(NULL, 'actionEmployeeForm', 'Modify employee options form content', 'This hook allows to modify employee options form FormBuilder', '1 '),
(NULL, 'actionCurrencyForm', 'Modify currency options form content', 'This hook allows to modify currency options form FormBuilder', '1 '),
(NULL, 'actionShopLogoForm', 'Modify shop logo options form content', 'This hook allows to modify shop logo options form FormBuilder', '1 '),
(NULL, 'actionTaxForm', 'Modify tax options form content', 'This hook allows to modify tax options form FormBuilder', '1 '),
(NULL, 'actionMailThemeForm', 'Modify mail theme options form content', 'This hook allows to modify mail theme options form FormBuilder', '1 '),
(NULL, 'actionPerformancePageSave', 'Modify performance page options form saved data', 'This hook allows to modify data of performance page options form after it was saved', '1 '),
(NULL, 'actionMaintenancePageSave', 'Modify maintenance page options form saved data', 'This hook allows to modify data of maintenance page options form after it was saved', '1 '),
(NULL, 'actionAdministrationPageSave', 'Modify administration page options form saved data', 'This hook allows to modify data of administration page options form after it was saved', '1 '),
(NULL, 'actionShippingPreferencesPageSave', 'Modify shipping preferences page options form saved data', 'This hook allows to modify data of shipping preferences page options form after it was saved', '1 '),
(NULL, 'actionOrdersInvoicesByDateSave', 'Modify orders invoices by date options form saved data', 'This hook allows to modify data of orders invoices by date options form after it was saved', '1 '),
(NULL, 'actionOrdersInvoicesByStatusSave', 'Modify orders invoices by status options form saved data', 'This hook allows to modify data of orders invoices by status options form after it was saved', '1 '),
(NULL, 'actionOrdersInvoicesOptionsSave', 'Modify orders invoices options options form saved data', 'This hook allows to modify data of orders invoices options options form after it was saved', '1 '),
(NULL, 'actionCustomerPreferencesPageSave', 'Modify customer preferences page options form saved data', 'This hook allows to modify data of customer preferences page options form after it was saved', '1 '),
(NULL, 'actionOrderPreferencesPageSave', 'Modify order preferences page options form saved data', 'This hook allows to modify data of order preferences page options form after it was saved', '1 '),
(NULL, 'actionProductPreferencesPageSave', 'Modify product preferences page options form saved data', 'This hook allows to modify data of product preferences page options form after it was saved', '1 '),
(NULL, 'actionGeneralPageSave', 'Modify general page options form saved data', 'This hook allows to modify data of general page options form after it was saved', '1 '),
(NULL, 'actionLogsPageSave', 'Modify logs page options form saved data', 'This hook allows to modify data of logs page options form after it was saved', '1 '),
(NULL, 'actionOrderDeliverySlipOptionsSave', 'Modify order delivery slip options options form saved data', 'This hook allows to modify data of order delivery slip options options form after it was saved', '1 '),
(NULL, 'actionOrderDeliverySlipPdfSave', 'Modify order delivery slip pdf options form saved data', 'This hook allows to modify data of order delivery slip pdf options form after it was saved', '1 '),
(NULL, 'actionGeolocationPageSave', 'Modify geolocation page options form saved data', 'This hook allows to modify data of geolocation page options form after it was saved', '1 '),
(NULL, 'actionLocalizationPageSave', 'Modify localization page options form saved data', 'This hook allows to modify data of localization page options form after it was saved', '1 '),
(NULL, 'actionPaymentPreferencesSave', 'Modify payment preferences options form saved data', 'This hook allows to modify data of payment preferences options form after it was saved', '1 '),
(NULL, 'actionEmailConfigurationSave', 'Modify email configuration options form saved data', 'This hook allows to modify data of email configuration options form after it was saved', '1 '),
(NULL, 'actionRequestSqlSave', 'Modify request sql options form saved data', 'This hook allows to modify data of request sql options form after it was saved', '1 '),
(NULL, 'actionBackupSave', 'Modify backup options form saved data', 'This hook allows to modify data of backup options form after it was saved', '1 '),
(NULL, 'actionWebservicePageSave', 'Modify webservice page options form saved data', 'This hook allows to modify data of webservice page options form after it was saved', '1 '),
(NULL, 'actionMetaPageSave', 'Modify meta page options form saved data', 'This hook allows to modify data of meta page options form after it was saved', '1 '),
(NULL, 'actionEmployeeSave', 'Modify employee options form saved data', 'This hook allows to modify data of employee options form after it was saved', '1 '),
(NULL, 'actionCurrencySave', 'Modify currency options form saved data', 'This hook allows to modify data of currency options form after it was saved', '1 '),
(NULL, 'actionShopLogoSave', 'Modify shop logo options form saved data', 'This hook allows to modify data of shop logo options form after it was saved', '1 '),
(NULL, 'actionTaxSave', 'Modify tax options form saved data', 'This hook allows to modify data of tax options form after it was saved', '1 '),
(NULL, 'actionMailThemeSave', 'Modify mail theme options form saved data', 'This hook allows to modify data of mail theme options form after it was saved', '1 '),
(NULL, 'actionCategoryGridDefinitionModifier', 'Modify category grid definition', 'This hook allows to alter category grid columns, actions and filters', '1 '),
(NULL, 'actionEmployeeGridDefinitionModifier', 'Modify employee grid definition', 'This hook allows to alter employee grid columns, actions and filters', '1 '),
(NULL, 'actionContactGridDefinitionModifier', 'Modify contact grid definition', 'This hook allows to alter contact grid columns, actions and filters', '1 '),
(NULL, 'actionCustomerGridDefinitionModifier', 'Modify customer grid definition', 'This hook allows to alter customer grid columns, actions and filters', '1 '),
(NULL, 'actionLanguageGridDefinitionModifier', 'Modify language grid definition', 'This hook allows to alter language grid columns, actions and filters', '1 '),
(NULL, 'actionCurrencyGridDefinitionModifier', 'Modify currency grid definition', 'This hook allows to alter currency grid columns, actions and filters', '1 '),
(NULL, 'actionSupplierGridDefinitionModifier', 'Modify supplier grid definition', 'This hook allows to alter supplier grid columns, actions and filters', '1 '),
(NULL, 'actionProfileGridDefinitionModifier', 'Modify profile grid definition', 'This hook allows to alter profile grid columns, actions and filters', '1 '),
(NULL, 'actionCmsPageCategoryGridDefinitionModifier', 'Modify cms page category grid definition', 'This hook allows to alter cms page category grid columns, actions and filters', '1 '),
(NULL, 'actionTaxGridDefinitionModifier', 'Modify tax grid definition', 'This hook allows to alter tax grid columns, actions and filters', '1 '),
(NULL, 'actionManufacturerGridDefinitionModifier', 'Modify manufacturer grid definition', 'This hook allows to alter manufacturer grid columns, actions and filters', '1 '),
(NULL, 'actionManufacturerAddressGridDefinitionModifier', 'Modify manufacturer address grid definition', 'This hook allows to alter manufacturer address grid columns, actions and filters', '1 '),
(NULL, 'actionCmsPageGridDefinitionModifier', 'Modify cms page grid definition', 'This hook allows to alter cms page grid columns, actions and filters', '1 '),
(NULL, 'actionBackupGridQueryBuilderModifier', 'Modify backup grid query builder', 'This hook allows to alter Doctrine query builder for backup grid', '1 '),
(NULL, 'actionCategoryGridQueryBuilderModifier', 'Modify category grid query builder', 'This hook allows to alter Doctrine query builder for category grid', '1 '),
(NULL, 'actionEmployeeGridQueryBuilderModifier', 'Modify employee grid query builder', 'This hook allows to alter Doctrine query builder for employee grid', '1 '),
(NULL, 'actionContactGridQueryBuilderModifier', 'Modify contact grid query builder', 'This hook allows to alter Doctrine query builder for contact grid', '1 '),
(NULL, 'actionCustomerGridQueryBuilderModifier', 'Modify customer grid query builder', 'This hook allows to alter Doctrine query builder for customer grid', '1 '),
(NULL, 'actionLanguageGridQueryBuilderModifier', 'Modify language grid query builder', 'This hook allows to alter Doctrine query builder for language grid', '1 '),
(NULL, 'actionCurrencyGridQueryBuilderModifier', 'Modify currency grid query builder', 'This hook allows to alter Doctrine query builder for currency grid', '1 '),
(NULL, 'actionSupplierGridQueryBuilderModifier', 'Modify supplier grid query builder', 'This hook allows to alter Doctrine query builder for supplier grid', '1 '),
(NULL, 'actionProfileGridQueryBuilderModifier', 'Modify profile grid query builder', 'This hook allows to alter Doctrine query builder for profile grid', '1 '),
(NULL, 'actionCmsPageCategoryGridQueryBuilderModifier', 'Modify cms page category grid query builder', 'This hook allows to alter Doctrine query builder for cms page category grid', '1 '),
(NULL, 'actionTaxGridQueryBuilderModifier', 'Modify tax grid query builder', 'This hook allows to alter Doctrine query builder for tax grid', '1 '),
(NULL, 'actionManufacturerGridQueryBuilderModifier', 'Modify manufacturer grid query builder', 'This hook allows to alter Doctrine query builder for manufacturer grid', '1 '),
(NULL, 'actionManufacturerAddressGridQueryBuilderModifier', 'Modify manufacturer address grid query builder', 'This hook allows to alter Doctrine query builder for manufacturer address grid', '1 '),
(NULL, 'actionCmsPageGridQueryBuilderModifier', 'Modify cms page grid query builder', 'This hook allows to alter Doctrine query builder for cms page grid', '1 '),
(NULL, 'actionLogsGridDataModifier', 'Modify logs grid data', 'This hook allows to modify logs grid data', '1 '),
(NULL, 'actionEmailLogsGridDataModifier', 'Modify email logs grid data', 'This hook allows to modify email logs grid data', '1 '),
(NULL, 'actionSqlRequestGridDataModifier', 'Modify sql request grid data', 'This hook allows to modify sql request grid data', '1 '),
(NULL, 'actionBackupGridDataModifier', 'Modify backup grid data', 'This hook allows to modify backup grid data', '1 '),
(NULL, 'actionWebserviceKeyGridDataModifier', 'Modify webservice key grid data', 'This hook allows to modify webservice key grid data', '1 '),
(NULL, 'actionMetaGridDataModifier', 'Modify meta grid data', 'This hook allows to modify meta grid data', '1 '),
(NULL, 'actionCategoryGridDataModifier', 'Modify category grid data', 'This hook allows to modify category grid data', '1 '),
(NULL, 'actionEmployeeGridDataModifier', 'Modify employee grid data', 'This hook allows to modify employee grid data', '1 '),
(NULL, 'actionContactGridDataModifier', 'Modify contact grid data', 'This hook allows to modify contact grid data', '1 '),
(NULL, 'actionCustomerGridDataModifier', 'Modify customer grid data', 'This hook allows to modify customer grid data', '1 '),
(NULL, 'actionLanguageGridDataModifier', 'Modify language grid data', 'This hook allows to modify language grid data', '1 '),
(NULL, 'actionCurrencyGridDataModifier', 'Modify currency grid data', 'This hook allows to modify currency grid data', '1 '),
(NULL, 'actionSupplierGridDataModifier', 'Modify supplier grid data', 'This hook allows to modify supplier grid data', '1 '),
(NULL, 'actionProfileGridDataModifier', 'Modify profile grid data', 'This hook allows to modify profile grid data', '1 '),
(NULL, 'actionCmsPageCategoryGridDataModifier', 'Modify cms page category grid data', 'This hook allows to modify cms page category grid data', '1 '),
(NULL, 'actionTaxGridDataModifier', 'Modify tax grid data', 'This hook allows to modify tax grid data', '1 '),
(NULL, 'actionManufacturerGridDataModifier', 'Modify manufacturer grid data', 'This hook allows to modify manufacturer grid data', '1 '),
(NULL, 'actionManufacturerAddressGridDataModifier', 'Modify manufacturer address grid data', 'This hook allows to modify manufacturer address grid data', '1 '),
(NULL, 'actionCmsPageGridDataModifier', 'Modify cms page grid data', 'This hook allows to modify cms page grid data', '1 '),
(NULL, 'actionCategoryGridFilterFormModifier', 'Modify category grid filters', 'This hook allows to modify filters for category grid', '1 '),
(NULL, 'actionEmployeeGridFilterFormModifier', 'Modify employee grid filters', 'This hook allows to modify filters for employee grid', '1 '),
(NULL, 'actionContactGridFilterFormModifier', 'Modify contact grid filters', 'This hook allows to modify filters for contact grid', '1 '),
(NULL, 'actionCustomerGridFilterFormModifier', 'Modify customer grid filters', 'This hook allows to modify filters for customer grid', '1 '),
(NULL, 'actionLanguageGridFilterFormModifier', 'Modify language grid filters', 'This hook allows to modify filters for language grid', '1 '),
(NULL, 'actionCurrencyGridFilterFormModifier', 'Modify currency grid filters', 'This hook allows to modify filters for currency grid', '1 '),
(NULL, 'actionSupplierGridFilterFormModifier', 'Modify supplier grid filters', 'This hook allows to modify filters for supplier grid', '1 '),
(NULL, 'actionProfileGridFilterFormModifier', 'Modify profile grid filters', 'This hook allows to modify filters for profile grid', '1 '),
(NULL, 'actionCmsPageCategoryGridFilterFormModifier', 'Modify cms page category grid filters', 'This hook allows to modify filters for cms page category grid', '1 '),
(NULL, 'actionTaxGridFilterFormModifier', 'Modify tax grid filters', 'This hook allows to modify filters for tax grid', '1 '),
(NULL, 'actionManufacturerGridFilterFormModifier', 'Modify manufacturer grid filters', 'This hook allows to modify filters for manufacturer grid', '1 '),
(NULL, 'actionManufacturerAddressGridFilterFormModifier', 'Modify manufacturer address grid filters', 'This hook allows to modify filters for manufacturer address grid', '1 '),
(NULL, 'actionCmsPageGridFilterFormModifier', 'Modify cms page grid filters', 'This hook allows to modify filters for cms page grid', '1 '),
(NULL, 'actionCategoryGridPresenterModifier', 'Modify category grid template data', 'This hook allows to modify data which is about to be used in template for category grid', '1 '),
(NULL, 'actionEmployeeGridPresenterModifier', 'Modify employee grid template data', 'This hook allows to modify data which is about to be used in template for employee grid', '1 '),
(NULL, 'actionContactGridPresenterModifier', 'Modify contact grid template data', 'This hook allows to modify data which is about to be used in template for contact grid', '1 '),
(NULL, 'actionCustomerGridPresenterModifier', 'Modify customer grid template data', 'This hook allows to modify data which is about to be used in template for customer grid', '1 '),
(NULL, 'actionLanguageGridPresenterModifier', 'Modify language grid template data', 'This hook allows to modify data which is about to be used in template for language grid', '1 '),
(NULL, 'actionCurrencyGridPresenterModifier', 'Modify currency grid template data', 'This hook allows to modify data which is about to be used in template for currency grid', '1 '),
(NULL, 'actionSupplierGridPresenterModifier', 'Modify supplier grid template data', 'This hook allows to modify data which is about to be used in template for supplier grid', '1 '),
(NULL, 'actionProfileGridPresenterModifier', 'Modify profile grid template data', 'This hook allows to modify data which is about to be used in template for profile grid', '1 '),
(NULL, 'actionCmsPageCategoryGridPresenterModifier', 'Modify cms page category grid template data', 'This hook allows to modify data which is about to be used in template for cms page category grid', '1 '),
(NULL, 'actionTaxGridPresenterModifier', 'Modify tax grid template data', 'This hook allows to modify data which is about to be used in template for tax grid', '1 '),
(NULL, 'actionManufacturerGridPresenterModifier', 'Modify manufacturer grid template data', 'This hook allows to modify data which is about to be used in template for manufacturer grid', '1 '),
(NULL, 'actionManufacturerAddressGridPresenterModifier', 'Modify manufacturer address grid template data', 'This hook allows to modify data which is about to be used in template for manufacturer address grid', '1 '),
(NULL, 'actionCmsPageGridPresenterModifier', 'Modify cms page grid template data', 'This hook allows to modify data which is about to be used in template for cms page grid', '1 ')
ON DUPLICATE KEY UPDATE `title` = VALUES(`title`), `description` = VALUES(`description`);
INSERT IGNORE INTO `PREFIX_authorization_role` (`slug`) VALUES
('ROLE_MOD_TAB_ADMINMODULESMANAGE_CREATE'),
('ROLE_MOD_TAB_ADMINMODULESMANAGE_READ'),
('ROLE_MOD_TAB_ADMINMODULESMANAGE_UPDATE'),
('ROLE_MOD_TAB_ADMINMODULESMANAGE_DELETE');
INSERT IGNORE INTO `PREFIX_authorization_role` (`slug`) VALUES
('ROLE_MOD_TAB_ADMINMODULESCATALOG_CREATE'),
('ROLE_MOD_TAB_ADMINMODULESCATALOG_READ'),
('ROLE_MOD_TAB_ADMINMODULESCATALOG_UPDATE'),
('ROLE_MOD_TAB_ADMINMODULESCATALOG_DELETE');
INSERT IGNORE INTO `PREFIX_authorization_role` (`slug`) VALUES
('ROLE_MOD_TAB_ADMINPARENTMODULESCATALOG_CREATE'),
('ROLE_MOD_TAB_ADMINPARENTMODULESCATALOG_READ'),
('ROLE_MOD_TAB_ADMINPARENTMODULESCATALOG_UPDATE'),
('ROLE_MOD_TAB_ADMINPARENTMODULESCATALOG_DELETE');
DROP INDEX admin_filter_search_idx ON `PREFIX_admin_filter`;
ALTER TABLE `PREFIX_admin_filter` ADD filter_id VARCHAR(255) NOT NULL;
CREATE UNIQUE INDEX admin_filter_search_id_idx ON `PREFIX_admin_filter` (employee, shop, controller, action, filter_id);
DROP INDEX id_product ON `PREFIX_product_download`;
DROP INDEX product_active ON `PREFIX_product_download`;

View File

@@ -0,0 +1,4 @@
SET SESSION sql_mode = '';
SET NAMES 'utf8';
/* PHP:ps_1761_update_currencies(); */;

View File

@@ -0,0 +1,44 @@
SET SESSION sql_mode = '';
SET NAMES 'utf8';
INSERT INTO `PREFIX_category_lang` SELECT
`entity`.`id_category`, 1, `entity`.`id_lang`, `entity`.`name`, `entity`.`description`, `entity`.`link_rewrite`, `entity`.`meta_title`, `entity`.`meta_keywords`, `entity`.`meta_description`
FROM `PREFIX_category_lang` entity
LEFT JOIN `PREFIX_category_lang` entity2 ON `entity2`.`id_shop` = 1 AND `entity`.`id_category` = `entity2`.`id_category`
WHERE `entity2`.`id_shop` IS NULL;
INSERT INTO `PREFIX_cms_category_lang` SELECT
`entity`.`id_cms_category`, `entity`.`id_lang`, 1, `entity`.`name`, `entity`.`description`, `entity`.`link_rewrite`, `entity`.`meta_title`, `entity`.`meta_keywords`, `entity`.`meta_description`
FROM `PREFIX_cms_category_lang` entity
LEFT JOIN `PREFIX_cms_category_lang` entity2 ON `entity2`.`id_shop` = 1 AND `entity`.`id_cms_category` = `entity2`.`id_cms_category`
WHERE `entity2`.`id_shop` IS NULL;
INSERT INTO `PREFIX_cms_lang` SELECT
`entity`.`id_cms`, `entity`.`id_lang`, 1, `entity`.`meta_title`, `entity`.`head_seo_title`, `entity`.`meta_description`, `entity`.`meta_keywords`, `entity`.`content`, `entity`.`link_rewrite`
FROM `PREFIX_cms_lang` entity
LEFT JOIN `PREFIX_cms_lang` entity2 ON `entity2`.`id_shop` = 1 AND `entity`.`id_cms` = `entity2`.`id_cms`
WHERE `entity2`.`id_shop` IS NULL;
INSERT INTO `PREFIX_cms_role_lang` SELECT
`entity`.`id_cms_role`, `entity`.`id_lang`, 1, `entity`.`name`
FROM `PREFIX_cms_role_lang` entity
LEFT JOIN `PREFIX_cms_role_lang` entity2 ON `entity2`.`id_shop` = 1 AND `entity`.`id_cms_role` = `entity2`.`id_cms_role`
WHERE `entity2`.`id_shop` IS NULL;
INSERT INTO `PREFIX_customization_field_lang` SELECT
`entity`.`id_customization_field`, `entity`.`id_lang`, 1, `entity`.`name`
FROM `PREFIX_customization_field_lang` entity
LEFT JOIN `PREFIX_customization_field_lang` entity2 ON `entity2`.`id_shop` = 1 AND `entity`.`id_customization_field` = `entity2`.`id_customization_field`
WHERE `entity2`.`id_shop` IS NULL;
INSERT INTO `PREFIX_meta_lang` SELECT
`entity`.`id_meta`, 1, `entity`.`id_lang`, `entity`.title, `entity`.`description`, `entity`.`keywords`, `entity`.`url_rewrite`
FROM `PREFIX_meta_lang` entity
LEFT JOIN `PREFIX_meta_lang` entity2 ON `entity2`.`id_shop` = 1 AND `entity`.`id_meta` = `entity2`.`id_meta`
WHERE `entity2`.`id_shop` IS NULL;
INSERT INTO `PREFIX_product_lang` SELECT
`entity`.`id_product`, 1, `entity`.`id_lang`, `entity`.`description`, `entity`.`description_short`, `entity`.`link_rewrite`, `entity`.`meta_description`, `entity`.`meta_keywords`, `entity`.`meta_title`, `entity`.`name`, `entity`.`available_now`, `entity`.`available_later`, `entity`.`delivery_in_stock`, `entity`.`delivery_out_stock`
FROM `PREFIX_product_lang` entity
LEFT JOIN `PREFIX_product_lang` entity2 ON `entity2`.`id_shop` = 1 AND `entity`.`id_product` = `entity2`.`id_product`
WHERE `entity2`.`id_shop` IS NULL;

View File

@@ -0,0 +1 @@
/* PHP:ps_1763_update_tabs(); */;

View File

@@ -0,0 +1,16 @@
SET SESSION sql_mode='';
SET NAMES 'utf8';
CREATE TABLE `PREFIX_employee_session` (
`id_employee_session` int(11) unsigned NOT NULL auto_increment,
`id_employee` int(10) unsigned DEFAULT NULL,
`token` varchar(40) DEFAULT NULL,
PRIMARY KEY `id_employee_session` (`id_employee_session`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
CREATE TABLE `PREFIX_customer_session` (
`id_customer_session` int(11) unsigned NOT NULL auto_increment,
`id_customer` int(10) unsigned DEFAULT NULL,
`token` varchar(40) DEFAULT NULL,
PRIMARY KEY `id_customer_session` (`id_customer_session`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,729 @@
SET SESSION sql_mode='';
SET NAMES 'utf8';
ALTER DATABASE `DB_NAME` CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci;
INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES
('PS_DISPLAY_MANUFACTURERS', '1', NOW(), NOW()),
('PS_ORDER_PRODUCTS_NB_PER_PAGE', '8', NOW(), NOW()),
('PS_SEARCH_FUZZY', '1', NOW(), NOW()),
('PS_SEARCH_FUZZY_MAX_LOOP', '4', NOW(), NOW()),
('PS_SEARCH_MAX_WORD_LENGTH', '15', NOW(), NOW())
;
/* Add field MPN to tables and assign empty values */
ALTER TABLE `PREFIX_order_detail` ADD `product_mpn` VARCHAR(40) NULL AFTER `product_upc`;
ALTER TABLE `PREFIX_supply_order_detail` ADD `mpn` VARCHAR(40) NULL AFTER `upc`;
ALTER TABLE `PREFIX_stock` ADD `mpn` VARCHAR(40) NULL AFTER `upc`;
ALTER TABLE `PREFIX_product_attribute` ADD `mpn` VARCHAR(40) NULL AFTER `upc`;
ALTER TABLE `PREFIX_product` ADD `mpn` VARCHAR(40) NULL AFTER `upc`;
UPDATE `PREFIX_order_detail` SET `product_mpn` = '';
UPDATE `PREFIX_supply_order_detail` SET `mpn` = '';
UPDATE `PREFIX_stock` SET `mpn` = '';
UPDATE `PREFIX_product_attribute` SET `mpn` = '';
UPDATE `PREFIX_product` SET `mpn` = '';
/* Delete price display precision configuration */
DELETE FROM `PREFIX_configuration` WHERE `name` = 'PS_PRICE_DISPLAY_PRECISION';
/* Set optin field value to 0 in employee table */
ALTER TABLE `PREFIX_employee` MODIFY COLUMN `optin` tinyint(1) unsigned DEFAULT NULL;
/* Increase column size */
UPDATE `PREFIX_hook` SET `name` = SUBSTRING(`name`, 1, 191);
ALTER TABLE `PREFIX_hook` CHANGE `name` `name` VARCHAR(191) NOT NULL;
ALTER TABLE `PREFIX_hook` CHANGE `title` `title` VARCHAR(255) NOT NULL;
UPDATE `PREFIX_hook_alias` SET `name` = SUBSTRING(`name`, 1, 191), `alias` = SUBSTRING(`alias`, 1, 191);
ALTER TABLE `PREFIX_hook_alias` CHANGE `name` `name` VARCHAR(191) NOT NULL;
ALTER TABLE `PREFIX_hook_alias` CHANGE `alias` `alias` VARCHAR(191) NOT NULL;
/* php:ps_1770_update_charset */
UPDATE `PREFIX_alias` SET `alias` = SUBSTRING(`alias`, 1, 191);
ALTER TABLE `PREFIX_alias` CHANGE `alias` `alias` VARCHAR(191) NOT NULL;
UPDATE `PREFIX_authorization_role` SET `slug` = SUBSTRING(`slug`, 1, 191);
ALTER TABLE `PREFIX_authorization_role` CHANGE `slug` `slug` VARCHAR(191) NOT NULL;
UPDATE `PREFIX_module_preference` SET `module` = SUBSTRING(`module`, 1, 191);
ALTER TABLE `PREFIX_module_preference` CHANGE `module` `module` VARCHAR(191) NOT NULL;
UPDATE `PREFIX_tab_module_preference` SET `module` = SUBSTRING(`module`, 1, 191);
ALTER TABLE `PREFIX_tab_module_preference` CHANGE `module` `module` VARCHAR(191) NOT NULL;
UPDATE `PREFIX_smarty_lazy_cache` SET `cache_id` = SUBSTRING(`cache_id`, 1, 191);
ALTER TABLE `PREFIX_smarty_lazy_cache` CHANGE `cache_id` `cache_id` VARCHAR(191) NOT NULL DEFAULT '';
/* improve performance of lookup by product reference/product_supplier avoiding full table scan */
ALTER TABLE PREFIX_product
ADD INDEX reference_idx(reference),
ADD INDEX supplier_reference_idx(supplier_reference);
/* Add fields for currencies */
ALTER TABLE `PREFIX_currency` ADD `unofficial` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0' AFTER `active`;
ALTER TABLE `PREFIX_currency` ADD `modified` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0' AFTER `unofficial`;
ALTER TABLE `PREFIX_currency_lang` ADD `pattern` varchar(255) DEFAULT NULL AFTER `symbol`;
/* Utf8mb4 conversion */
ALTER TABLE `PREFIX_access` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_accessory` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_address` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_address_format` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_alias` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_attachment` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_attachment_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_attribute` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_attribute_group` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_attribute_group_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_attribute_group_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_attribute_impact` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_attribute_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_attribute_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_authorization_role` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_carrier` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_carrier_group` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_carrier_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_carrier_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_carrier_tax_rules_group_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_carrier_zone` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cart` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cart_cart_rule` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cart_product` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cart_rule` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cart_rule_carrier` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cart_rule_combination` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cart_rule_country` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cart_rule_group` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cart_rule_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cart_rule_product_rule` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cart_rule_product_rule_group` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cart_rule_product_rule_value` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cart_rule_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_category` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_category_group` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_category_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_category_product` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_category_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cms` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cms_category` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cms_category_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cms_category_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cms_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cms_role` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cms_role_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_cms_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_configuration` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_configuration_kpi` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_configuration_kpi_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_configuration_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_connections` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_connections_page` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_connections_source` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_contact` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_contact_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_contact_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_country` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_country_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_country_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_currency` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_currency_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_currency_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_customer` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_customer_group` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_customer_message` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_customer_message_sync_imap` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_customer_session` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_customer_thread` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_customization` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_customization_field` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_customization_field_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_customized_data` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_date_range` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_delivery` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_employee` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_employee_session` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_employee_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_feature` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_feature_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_feature_product` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_feature_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_feature_value` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_feature_value_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_gender` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_gender_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_group` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_group_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_group_reduction` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_group_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_guest` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_hook` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_hook_alias` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_hook_module` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_hook_module_exceptions` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_image` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_image_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_image_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_image_type` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_import_match` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_lang_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_log` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_mail` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_manufacturer` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_manufacturer_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_manufacturer_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_memcached_servers` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_message` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_message_readed` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_meta` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_meta_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_module` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_module_access` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_module_carrier` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_module_country` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_module_currency` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_module_group` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_module_preference` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_module_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_operating_system` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_orders` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_order_carrier` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_order_cart_rule` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_order_detail` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_order_detail_tax` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_order_history` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_order_invoice` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_order_invoice_payment` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_order_invoice_tax` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_order_message` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_order_message_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_order_payment` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_order_return` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_order_return_detail` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_order_return_state` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_order_return_state_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_order_slip` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_order_slip_detail` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_order_slip_detail_tax` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_order_state` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_order_state_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_pack` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_page` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
/* php:execute_sql_if_table_exists('pagenotfound', 'ALTER TABLE `PREFIX_pagenotfound` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;'); */
ALTER TABLE `PREFIX_page_type` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_page_viewed` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_product` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_product_attachment` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_product_attribute` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_product_attribute_combination` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_product_attribute_image` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_product_attribute_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_product_carrier` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_product_country_tax` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_product_download` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_product_group_reduction_cache` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_product_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_product_sale` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_product_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_product_supplier` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_product_tag` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_profile` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_profile_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_quick_access` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_quick_access_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_range_price` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_range_weight` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_referrer` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_referrer_cache` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_referrer_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_request_sql` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_required_field` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_risk` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_risk_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_search_engine` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_search_index` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_search_word` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_shop_group` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_shop_url` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_smarty_cache` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_smarty_last_flush` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_smarty_lazy_cache` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_specific_price` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_specific_price_priority` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_specific_price_rule` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_specific_price_rule_condition` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_specific_price_rule_condition_group` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_state` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_stock` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_stock_available` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_stock_mvt` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_stock_mvt_reason` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_stock_mvt_reason_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_store` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_store_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_store_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_supplier` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_supplier_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_supplier_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_supply_order` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_supply_order_detail` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_supply_order_history` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_supply_order_receipt_history` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_supply_order_state` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_supply_order_state_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_tab` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_tab_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_tab_module_preference` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_tag` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_tag_count` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_tax` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_tax_lang` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_tax_rule` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_tax_rules_group` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_tax_rules_group_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_timezone` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_warehouse` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_warehouse_carrier` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_warehouse_product_location` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_warehouse_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_webservice_account` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_webservice_account_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_webservice_permission` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_web_browser` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_zone` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_zone_shop` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE `PREFIX_gender_lang` CHANGE `name` `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL;
ALTER TABLE `PREFIX_stock_mvt` CHANGE `employee_lastname` `employee_lastname` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
ALTER TABLE `PREFIX_stock_mvt` CHANGE `employee_firstname` `employee_firstname` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
ALTER TABLE `PREFIX_timezone` CHANGE `name` `name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL;
ALTER TABLE `PREFIX_attribute_group` CHANGE `group_type` `group_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL;
ALTER TABLE `PREFIX_search_word` CHANGE `word` `word` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL;
ALTER TABLE `PREFIX_meta` CHANGE `page` `page` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL;
/* php:execute_sql_if_table_exists('statssearch', 'ALTER TABLE `PREFIX_statssearch` CHANGE `keywords` `keywords` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL;'); */
ALTER TABLE `PREFIX_stock` CHANGE `reference` `reference` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL;
ALTER TABLE `PREFIX_stock` CHANGE `ean13` `ean13` varchar(13) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
ALTER TABLE `PREFIX_stock` CHANGE `isbn` `isbn` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
ALTER TABLE `PREFIX_stock` CHANGE `upc` `upc` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
ALTER TABLE `PREFIX_attribute_lang` CHANGE `name` `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL;
ALTER TABLE `PREFIX_connections` CHANGE `http_referer` `http_referer` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
ALTER TABLE `PREFIX_product_download` CHANGE `display_filename` `display_filename` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL;
/* Doctrine update happens too late to update the new enabled field, so we preset everything here */
ALTER TABLE `PREFIX_tab` ADD enabled TINYINT(1) NOT NULL;
ALTER TABLE `PREFIX_tab` ADD route_name VARCHAR(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL;
ALTER TABLE `PREFIX_tab` CHANGE class_name class_name VARCHAR(64) COLLATE utf8mb4_unicode_ci NOT NULL;
/* PHP:ps_1770_preset_tab_enabled(); */;
/* PHP:ps_1770_update_order_status_colors(); */;
INSERT INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`) VALUES
(NULL, 'displayAdminOrderTop', 'Admin Order Top', 'This hook displays content at the top of the order view page'),
(NULL, 'displayAdminOrderSide', 'Admin Order Side Column', 'This hook displays content in the order view page in the side column under the customer view'),
(NULL, 'displayAdminOrderSideBottom', 'Admin Order Side Column Bottom', 'This hook displays content in the order view page at the bottom of the side column'),
(NULL, 'displayAdminOrderMain', 'Admin Order Main Column', 'This hook displays content in the order view page in the main column under the details view'),
(NULL, 'displayAdminOrderMainBottom', 'Admin Order Main Column Bottom', 'This hook displays content in the order view page at the bottom of the main column'),
(NULL, 'displayAdminOrderTabLink', 'Admin Order Tab Link', 'This hook displays new tab links on the order view page'),
(NULL, 'displayAdminOrderTabContent', 'Admin Order Tab Content', 'This hook displays new tab contents on the order view page'),
(NULL, 'actionGetAdminOrderButtons', 'Admin Order Buttons', 'This hook is used to generate the buttons collection on the order view page (see ActionsBarButtonsCollection)'),
(NULL, 'displayFooterCategory', 'Category footer', 'This hook adds new blocks under the products listing in a category/search'),
(NULL, 'displayBackOfficeOrderActions', 'Admin Order Actions', 'This hook displays content in the order view page after action buttons (or aliased to side column in migrated page)'),
(NULL, 'actionAdminAdminPreferencesControllerPostProcessBefore', 'On post-process in Admin Preferences', 'This hook is called on Admin Preferences post-process before processing the form'),
(NULL, 'displayAdditionalCustomerAddressFields', 'Display additional customer address fields', 'This hook allows to display extra field values added in an address form using hook ''additionalCustomerAddressFields'''),
(NULL, 'displayAdminProductsExtra', 'Admin Product Extra Module Tab', 'This hook displays extra content in the Module tab on the product edit page'),
(NULL, 'actionFrontControllerInitBefore', 'Perform actions before front office controller initialization', 'This hook is launched before the initialization of all front office controllers'),
(NULL, 'actionFrontControllerInitAfter', 'Perform actions after front office controller initialization', 'This hook is launched after the initialization of all front office controllers'),
(NULL, 'actionAdminControllerInitAfter', 'Perform actions after admin controller initialization', 'This hook is launched after the initialization of all admin controllers'),
(NULL, 'actionAdminControllerInitBefore', 'Perform actions before admin controller initialization', 'This hook is launched before the initialization of all admin controllers'),
(NULL, 'actionControllerInitAfter', 'Perform actions after controller initialization', 'This hook is launched after the initialization of all controllers'),
(NULL, 'actionControllerInitBefore', 'Perform actions before controller initialization', 'This hook is launched before the initialization of all controllers'),
(NULL, 'actionAdminLoginControllerBefore', 'Perform actions before admin login controller initialization', 'This hook is launched before the initialization of the login controller'),
(NULL, 'actionAdminLoginControllerLoginBefore', 'Perform actions before admin login controller login action initialization', 'This hook is launched before the initialization of the login action in login controller'),
(NULL, 'actionAdminLoginControllerLoginAfter', 'Perform actions after admin login controller login action initialization', 'This hook is launched after the initialization of the login action in login controller'),
(NULL, 'actionAdminLoginControllerForgotBefore', 'Perform actions before admin login controller forgot action initialization', 'This hook is launched before the initialization of the forgot action in login controller'),
(NULL, 'actionAdminLoginControllerForgotAfter', 'Perform actions after admin login controller forgot action initialization', 'This hook is launched after the initialization of the forgot action in login controller'),
(NULL, 'actionAdminLoginControllerResetBefore', 'Perform actions before admin login controller reset action initialization', 'This hook is launched before the initialization of the reset action in login controller'),
(NULL, 'actionAdminLoginControllerResetAfter', 'Perform actions after admin login controller reset action initialization', 'This hook is launched after the initialization of the reset action in login controller'),
(NULL, 'displayHeader', 'Pages html head section', 'This hook adds additional elements in the head section of your pages (head section of html)')
ON DUPLICATE KEY UPDATE `title` = VALUES(`title`), `description` = VALUES(`description`);
INSERT IGNORE INTO `PREFIX_hook_alias` (`name`, `alias`) VALUES
('displayAdminOrderTop', 'displayInvoice'),
('displayAdminOrderSide', 'displayBackOfficeOrderActions'),
('actionFrontControllerInitAfter', 'actionFrontControllerAfterInit')
;
/* Add refund amount on order detail, and fill new columns via data in order_slip_detail table */
ALTER TABLE `PREFIX_order_detail` ADD `total_refunded_tax_excl` DECIMAL(20, 6) NOT NULL DEFAULT '0.000000' AFTER `original_wholesale_price`;
ALTER TABLE `PREFIX_order_detail` ADD `total_refunded_tax_incl` DECIMAL(20, 6) NOT NULL DEFAULT '0.000000' AFTER `total_refunded_tax_excl`;
ALTER TABLE `PREFIX_group_reduction` CHANGE `reduction` `reduction` DECIMAL(5, 4) NOT NULL;
ALTER TABLE `PREFIX_product_group_reduction_cache` CHANGE `reduction` `reduction` DECIMAL(5, 4) NOT NULL;
ALTER TABLE `PREFIX_order_slip` CHANGE `amount` `amount` DECIMAL(20, 6) NOT NULL DEFAULT '0.000000';
ALTER TABLE `PREFIX_order_slip` CHANGE `shipping_cost_amount` `shipping_cost_amount` DECIMAL(20, 6) NOT NULL DEFAULT '0.000000';
ALTER TABLE `PREFIX_order_payment` CHANGE `amount` `amount` DECIMAL(20, 6) NOT NULL;
/* attribute_impact price */
UPDATE `PREFIX_attribute_impact` SET `price` = RIGHT(`price`, 17) WHERE LENGTH(`price`) > 17;
ALTER TABLE `PREFIX_attribute_impact` CHANGE `price` `price` DECIMAL(20, 6) NOT NULL;
/* cart_rule minimum_amount & reduction_amount */
UPDATE `PREFIX_cart_rule` SET `minimum_amount` = RIGHT(`minimum_amount`, 17) WHERE LENGTH(`minimum_amount`) > 17;
UPDATE `PREFIX_cart_rule` SET `reduction_amount` = RIGHT(`reduction_amount`, 17) WHERE LENGTH(`reduction_amount`) > 17;
ALTER TABLE `PREFIX_cart_rule` CHANGE `minimum_amount` `minimum_amount` DECIMAL(20, 6) NOT NULL DEFAULT '0.000000';
ALTER TABLE `PREFIX_cart_rule` CHANGE `reduction_amount` `reduction_amount` DECIMAL(20, 6) NOT NULL DEFAULT '0.000000';
/* group reduction */
UPDATE `PREFIX_group` SET `reduction` = RIGHT(`reduction`, 6) WHERE LENGTH(`reduction`) > 6;
ALTER TABLE `PREFIX_group` CHANGE `reduction` `reduction` DECIMAL(5, 2) NOT NULL DEFAULT '0.00';
/* order_detail reduction_percent, group_reduction & ecotax */
UPDATE `PREFIX_order_detail` SET `reduction_percent` = RIGHT(`reduction_percent`, 6) WHERE LENGTH(`reduction_percent`) > 6;
UPDATE `PREFIX_order_detail` SET `group_reduction` = RIGHT(`group_reduction`, 6) WHERE LENGTH(`group_reduction`) > 6;
UPDATE `PREFIX_order_detail` SET `ecotax` = RIGHT(`ecotax`, 18) WHERE LENGTH(`ecotax`) > 18;
ALTER TABLE `PREFIX_order_detail` CHANGE `reduction_percent` `reduction_percent` DECIMAL(5, 2) NOT NULL DEFAULT '0.00';
ALTER TABLE `PREFIX_order_detail` CHANGE `group_reduction` `group_reduction` DECIMAL(5, 2) NOT NULL DEFAULT '0.00';
ALTER TABLE `PREFIX_order_detail` CHANGE `ecotax` `ecotax` DECIMAL(17, 6) NOT NULL DEFAULT '0.000000';
/* product additional_shipping_cost */
UPDATE `PREFIX_product` SET `additional_shipping_cost` = RIGHT(`additional_shipping_cost`, 17) WHERE LENGTH(`additional_shipping_cost`) > 17;
ALTER TABLE `PREFIX_product` CHANGE `additional_shipping_cost` `additional_shipping_cost` DECIMAL(20, 6) NOT NULL DEFAULT '0.000000';
/* product_shop additional_shipping_cost */
UPDATE `PREFIX_product_shop` SET `additional_shipping_cost` = RIGHT(`additional_shipping_cost`, 17) WHERE LENGTH(`additional_shipping_cost`) > 17;
ALTER TABLE `PREFIX_product_shop` CHANGE `additional_shipping_cost` `additional_shipping_cost` DECIMAL(20, 6) NOT NULL DEFAULT '0.000000';
/* order_cart_rule value & value_tax_excl */
UPDATE `PREFIX_order_cart_rule` SET `value` = RIGHT(`value`, 17) WHERE LENGTH(`value`) > 17;
UPDATE `PREFIX_order_cart_rule` SET `value_tax_excl` = RIGHT(`value_tax_excl`, 17) WHERE LENGTH(`value_tax_excl`) > 17;
ALTER TABLE `PREFIX_order_cart_rule` CHANGE `value` `value` DECIMAL(20, 6) NOT NULL DEFAULT '0.000000';
ALTER TABLE `PREFIX_order_cart_rule` CHANGE `value_tax_excl` `value_tax_excl` DECIMAL(20, 6) NOT NULL DEFAULT '0.000000';
/* add deleted field */
ALTER TABLE `PREFIX_order_cart_rule` ADD `deleted` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0';
UPDATE
`PREFIX_order_detail` `od`
SET
`od`.`total_refunded_tax_excl` = IFNULL((
SELECT SUM(`osd`.`amount_tax_excl`)
FROM `PREFIX_order_slip_detail` `osd`
WHERE `osd`.`id_order_detail` = `od`.`id_order_detail`
), 0),
`od`.`total_refunded_tax_incl` = IFNULL((
SELECT SUM(`osd`.`amount_tax_incl`)
FROM `PREFIX_order_slip_detail` `osd`
WHERE `osd`.`id_order_detail` = `od`.`id_order_detail`
), 0)
;
INSERT INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `position`)
VALUES (NULL, 'actionOrderMessageFormBuilderModifier', 'Modify order message identifiable object form',
'This hook allows to modify order message identifiable object forms content by modifying form builder data or FormBuilder itself',
'1'),
(NULL, 'actionCatalogPriceRuleFormBuilderModifier', 'Modify catalog price rule identifiable object form',
'This hook allows to modify catalog price rule identifiable object forms content by modifying form builder data or FormBuilder itself',
'1'),
(NULL, 'actionAttachmentFormBuilderModifier', 'Modify attachment identifiable object form',
'This hook allows to modify attachment identifiable object forms content by modifying form builder data or FormBuilder itself',
'1'),
(NULL, 'actionBeforeUpdateFeatureFormHandler', 'Modify feature identifiable object data before updating it',
'This hook allows to modify feature identifiable object forms data before it was updated', '1'),
(NULL, 'actionBeforeUpdateOrderMessageFormHandler',
'Modify order message identifiable object data before updating it',
'This hook allows to modify order message identifiable object forms data before it was updated', '1'),
(NULL, 'actionBeforeUpdateCatalogPriceRuleFormHandler',
'Modify catalog price rule identifiable object data before updating it',
'This hook allows to modify catalog price rule identifiable object forms data before it was updated', '1'),
(NULL, 'actionBeforeUpdateAttachmentFormHandler',
'Modify attachment identifiable object data before updating it',
'This hook allows to modify attachment identifiable object forms data before it was updated', '1'),
(NULL, 'actionAfterUpdateOrderMessageFormHandler',
'Modify order message identifiable object data after updating it',
'This hook allows to modify order message identifiable object forms data after it was updated', '1'),
(NULL, 'actionAfterUpdateCatalogPriceRuleFormHandler',
'Modify catalog price rule identifiable object data after updating it',
'This hook allows to modify catalog price rule identifiable object forms data after it was updated', '1'),
(NULL, 'actionAfterUpdateAttachmentFormHandler', 'Modify attachment identifiable object data after updating it',
'This hook allows to modify attachment identifiable object forms data after it was updated', '1'),
(NULL, 'actionBeforeCreateFeatureFormHandler', 'Modify feature identifiable object data before creating it',
'This hook allows to modify feature identifiable object forms data before it was created', '1'),
(NULL, 'actionBeforeCreateOrderMessageFormHandler',
'Modify order message identifiable object data before creating it',
'This hook allows to modify order message identifiable object forms data before it was created', '1'),
(NULL, 'actionBeforeCreateCatalogPriceRuleFormHandler',
'Modify catalog price rule identifiable object data before creating it',
'This hook allows to modify catalog price rule identifiable object forms data before it was created', '1'),
(NULL, 'actionBeforeCreateAttachmentFormHandler',
'Modify attachment identifiable object data before creating it',
'This hook allows to modify attachment identifiable object forms data before it was created', '1'),
(NULL, 'actionAfterCreateOrderMessageFormHandler',
'Modify order message identifiable object data after creating it',
'This hook allows to modify order message identifiable object forms data after it was created', '1'),
(NULL, 'actionAfterCreateCatalogPriceRuleFormHandler',
'Modify catalog price rule identifiable object data after creating it',
'This hook allows to modify catalog price rule identifiable object forms data after it was created', '1'),
(NULL, 'actionAfterCreateAttachmentFormHandler', 'Modify attachment identifiable object data after creating it',
'This hook allows to modify attachment identifiable object forms data after it was created', '1'),
(NULL, 'actionMerchandiseReturnForm', 'Modify merchandise return options form content',
'This hook allows to modify merchandise return options form FormBuilder', '1'),
(NULL, 'actionCreditSlipForm', 'Modify credit slip options form content',
'This hook allows to modify credit slip options form FormBuilder', '1'),
(NULL, 'actionMerchandiseReturnSave', 'Modify merchandise return options form saved data',
'This hook allows to modify data of merchandise return options form after it was saved', '1'),
(NULL, 'actionCreditSlipSave', 'Modify credit slip options form saved data',
'This hook allows to modify data of credit slip options form after it was saved', '1'),
(NULL, 'actionEmptyCategoryGridDefinitionModifier', 'Modify empty category grid definition',
'This hook allows to alter empty category grid columns, actions and filters', '1'),
(NULL, 'actionNoQtyProductWithCombinationGridDefinitionModifier',
'Modify no qty product with combination grid definition',
'This hook allows to alter no qty product with combination grid columns, actions and filters', '1'),
(NULL, 'actionNoQtyProductWithoutCombinationGridDefinitionModifier',
'Modify no qty product without combination grid definition',
'This hook allows to alter no qty product without combination grid columns, actions and filters', '1'),
(NULL, 'actionDisabledProductGridDefinitionModifier', 'Modify disabled product grid definition',
'This hook allows to alter disabled product grid columns, actions and filters', '1'),
(NULL, 'actionProductWithoutImageGridDefinitionModifier', 'Modify product without image grid definition',
'This hook allows to alter product without image grid columns, actions and filters', '1'),
(NULL, 'actionProductWithoutDescriptionGridDefinitionModifier',
'Modify product without description grid definition',
'This hook allows to alter product without description grid columns, actions and filters', '1'),
(NULL, 'actionProductWithoutPriceGridDefinitionModifier', 'Modify product without price grid definition',
'This hook allows to alter product without price grid columns, actions and filters', '1'),
(NULL, 'actionOrderGridDefinitionModifier', 'Modify order grid definition',
'This hook allows to alter order grid columns, actions and filters', '1'),
(NULL, 'actionCatalogPriceRuleGridDefinitionModifier', 'Modify catalog price rule grid definition',
'This hook allows to alter catalog price rule grid columns, actions and filters', '1'),
(NULL, 'actionOrderMessageGridDefinitionModifier', 'Modify order message grid definition',
'This hook allows to alter order message grid columns, actions and filters', '1'),
(NULL, 'actionAttachmentGridDefinitionModifier', 'Modify attachment grid definition',
'This hook allows to alter attachment grid columns, actions and filters', '1'),
(NULL, 'actionAttributeGroupGridDefinitionModifier', 'Modify attribute group grid definition',
'This hook allows to alter attribute group grid columns, actions and filters', '1'),
(NULL, 'actionMerchandiseReturnGridDefinitionModifier', 'Modify merchandise return grid definition',
'This hook allows to alter merchandise return grid columns, actions and filters', '1'),
(NULL, 'actionTaxRulesGroupGridDefinitionModifier', 'Modify tax rules group grid definition',
'This hook allows to alter tax rules group grid columns, actions and filters', '1'),
(NULL, 'actionAddressGridDefinitionModifier', 'Modify address grid definition',
'This hook allows to alter address grid columns, actions and filters', '1'),
(NULL, 'actionCreditSlipGridDefinitionModifier', 'Modify credit slip grid definition',
'This hook allows to alter credit slip grid columns, actions and filters', '1'),
(NULL, 'actionEmptyCategoryGridQueryBuilderModifier', 'Modify empty category grid query builder',
'This hook allows to alter Doctrine query builder for empty category grid', '1'),
(NULL, 'actionNoQtyProductWithCombinationGridQueryBuilderModifier',
'Modify no qty product with combination grid query builder',
'This hook allows to alter Doctrine query builder for no qty product with combination grid', '1'),
(NULL, 'actionNoQtyProductWithoutCombinationGridQueryBuilderModifier',
'Modify no qty product without combination grid query builder',
'This hook allows to alter Doctrine query builder for no qty product without combination grid', '1'),
(NULL, 'actionDisabledProductGridQueryBuilderModifier', 'Modify disabled product grid query builder',
'This hook allows to alter Doctrine query builder for disabled product grid', '1'),
(NULL, 'actionProductWithoutImageGridQueryBuilderModifier', 'Modify product without image grid query builder',
'This hook allows to alter Doctrine query builder for product without image grid', '1'),
(NULL, 'actionProductWithoutDescriptionGridQueryBuilderModifier',
'Modify product without description grid query builder',
'This hook allows to alter Doctrine query builder for product without description grid', '1'),
(NULL, 'actionProductWithoutPriceGridQueryBuilderModifier', 'Modify product without price grid query builder',
'This hook allows to alter Doctrine query builder for product without price grid', '1'),
(NULL, 'actionOrderGridQueryBuilderModifier', 'Modify order grid query builder',
'This hook allows to alter Doctrine query builder for order grid', '1'),
(NULL, 'actionCatalogPriceRuleGridQueryBuilderModifier', 'Modify catalog price rule grid query builder',
'This hook allows to alter Doctrine query builder for catalog price rule grid', '1'),
(NULL, 'actionOrderMessageGridQueryBuilderModifier', 'Modify order message grid query builder',
'This hook allows to alter Doctrine query builder for order message grid', '1'),
(NULL, 'actionAttachmentGridQueryBuilderModifier', 'Modify attachment grid query builder',
'This hook allows to alter Doctrine query builder for attachment grid', '1'),
(NULL, 'actionAttributeGroupGridQueryBuilderModifier', 'Modify attribute group grid query builder',
'This hook allows to alter Doctrine query builder for attribute group grid', '1'),
(NULL, 'actionMerchandiseReturnGridQueryBuilderModifier', 'Modify merchandise return grid query builder',
'This hook allows to alter Doctrine query builder for merchandise return grid', '1'),
(NULL, 'actionTaxRulesGroupGridQueryBuilderModifier', 'Modify tax rules group grid query builder',
'This hook allows to alter Doctrine query builder for tax rules group grid', '1'),
(NULL, 'actionAddressGridQueryBuilderModifier', 'Modify address grid query builder',
'This hook allows to alter Doctrine query builder for address grid', '1'),
(NULL, 'actionCreditSlipGridQueryBuilderModifier', 'Modify credit slip grid query builder',
'This hook allows to alter Doctrine query builder for credit slip grid', '1'),
(NULL, 'actionEmptyCategoryGridDataModifier', 'Modify empty category grid data',
'This hook allows to modify empty category grid data', '1'),
(NULL, 'actionNoQtyProductWithCombinationGridDataModifier', 'Modify no qty product with combination grid data',
'This hook allows to modify no qty product with combination grid data', '1'),
(NULL, 'actionNoQtyProductWithoutCombinationGridDataModifier',
'Modify no qty product without combination grid data',
'This hook allows to modify no qty product without combination grid data', '1'),
(NULL, 'actionDisabledProductGridDataModifier', 'Modify disabled product grid data',
'This hook allows to modify disabled product grid data', '1'),
(NULL, 'actionProductWithoutImageGridDataModifier', 'Modify product without image grid data',
'This hook allows to modify product without image grid data', '1'),
(NULL, 'actionProductWithoutDescriptionGridDataModifier', 'Modify product without description grid data',
'This hook allows to modify product without description grid data', '1'),
(NULL, 'actionProductWithoutPriceGridDataModifier', 'Modify product without price grid data',
'This hook allows to modify product without price grid data', '1'),
(NULL, 'actionOrderGridDataModifier', 'Modify order grid data', 'This hook allows to modify order grid data',
'1'),
(NULL, 'actionCatalogPriceRuleGridDataModifier', 'Modify catalog price rule grid data',
'This hook allows to modify catalog price rule grid data', '1'),
(NULL, 'actionOrderMessageGridDataModifier', 'Modify order message grid data',
'This hook allows to modify order message grid data', '1'),
(NULL, 'actionAttachmentGridDataModifier', 'Modify attachment grid data',
'This hook allows to modify attachment grid data', '1'),
(NULL, 'actionAttributeGroupGridDataModifier', 'Modify attribute group grid data',
'This hook allows to modify attribute group grid data', '1'),
(NULL, 'actionMerchandiseReturnGridDataModifier', 'Modify merchandise return grid data',
'This hook allows to modify merchandise return grid data', '1'),
(NULL, 'actionTaxRulesGroupGridDataModifier', 'Modify tax rules group grid data',
'This hook allows to modify tax rules group grid data', '1'),
(NULL, 'actionAddressGridDataModifier', 'Modify address grid data',
'This hook allows to modify address grid data', '1'),
(NULL, 'actionCreditSlipGridDataModifier', 'Modify credit slip grid data',
'This hook allows to modify credit slip grid data', '1'),
(NULL, 'actionEmptyCategoryGridFilterFormModifier', 'Modify empty category grid filters',
'This hook allows to modify filters for empty category grid', '1'),
(NULL, 'actionNoQtyProductWithCombinationGridFilterFormModifier',
'Modify no qty product with combination grid filters',
'This hook allows to modify filters for no qty product with combination grid', '1'),
(NULL, 'actionNoQtyProductWithoutCombinationGridFilterFormModifier',
'Modify no qty product without combination grid filters',
'This hook allows to modify filters for no qty product without combination grid', '1'),
(NULL, 'actionDisabledProductGridFilterFormModifier', 'Modify disabled product grid filters',
'This hook allows to modify filters for disabled product grid', '1'),
(NULL, 'actionProductWithoutImageGridFilterFormModifier', 'Modify product without image grid filters',
'This hook allows to modify filters for product without image grid', '1'),
(NULL, 'actionProductWithoutDescriptionGridFilterFormModifier',
'Modify product without description grid filters',
'This hook allows to modify filters for product without description grid', '1'),
(NULL, 'actionProductWithoutPriceGridFilterFormModifier', 'Modify product without price grid filters',
'This hook allows to modify filters for product without price grid', '1'),
(NULL, 'actionOrderGridFilterFormModifier', 'Modify order grid filters',
'This hook allows to modify filters for order grid', '1'),
(NULL, 'actionCatalogPriceRuleGridFilterFormModifier', 'Modify catalog price rule grid filters',
'This hook allows to modify filters for catalog price rule grid', '1'),
(NULL, 'actionOrderMessageGridFilterFormModifier', 'Modify order message grid filters',
'This hook allows to modify filters for order message grid', '1'),
(NULL, 'actionAttachmentGridFilterFormModifier', 'Modify attachment grid filters',
'This hook allows to modify filters for attachment grid', '1'),
(NULL, 'actionAttributeGroupGridFilterFormModifier', 'Modify attribute group grid filters',
'This hook allows to modify filters for attribute group grid', '1'),
(NULL, 'actionMerchandiseReturnGridFilterFormModifier', 'Modify merchandise return grid filters',
'This hook allows to modify filters for merchandise return grid', '1'),
(NULL, 'actionTaxRulesGroupGridFilterFormModifier', 'Modify tax rules group grid filters',
'This hook allows to modify filters for tax rules group grid', '1'),
(NULL, 'actionAddressGridFilterFormModifier', 'Modify address grid filters',
'This hook allows to modify filters for address grid', '1'),
(NULL, 'actionCreditSlipGridFilterFormModifier', 'Modify credit slip grid filters',
'This hook allows to modify filters for credit slip grid', '1'),
(NULL, 'actionEmptyCategoryGridPresenterModifier', 'Modify empty category grid template data',
'This hook allows to modify data which is about to be used in template for empty category grid', '1'),
(NULL, 'actionNoQtyProductWithCombinationGridPresenterModifier',
'Modify no qty product with combination grid template data',
'This hook allows to modify data which is about to be used in template for no qty product with combination grid',
'1'),
(NULL, 'actionNoQtyProductWithoutCombinationGridPresenterModifier',
'Modify no qty product without combination grid template data',
'This hook allows to modify data which is about to be used in template for no qty product without combination grid',
'1'),
(NULL, 'actionDisabledProductGridPresenterModifier', 'Modify disabled product grid template data',
'This hook allows to modify data which is about to be used in template for disabled product grid', '1'),
(NULL, 'actionProductWithoutImageGridPresenterModifier', 'Modify product without image grid template data',
'This hook allows to modify data which is about to be used in template for product without image grid', '1'),
(NULL, 'actionProductWithoutDescriptionGridPresenterModifier',
'Modify product without description grid template data',
'This hook allows to modify data which is about to be used in template for product without description grid',
'1'),
(NULL, 'actionProductWithoutPriceGridPresenterModifier', 'Modify product without price grid template data',
'This hook allows to modify data which is about to be used in template for product without price grid', '1'),
(NULL, 'actionOrderGridPresenterModifier', 'Modify order grid template data',
'This hook allows to modify data which is about to be used in template for order grid', '1'),
(NULL, 'actionCatalogPriceRuleGridPresenterModifier', 'Modify catalog price rule grid template data',
'This hook allows to modify data which is about to be used in template for catalog price rule grid', '1'),
(NULL, 'actionOrderMessageGridPresenterModifier', 'Modify order message grid template data',
'This hook allows to modify data which is about to be used in template for order message grid', '1'),
(NULL, 'actionAttachmentGridPresenterModifier', 'Modify attachment grid template data',
'This hook allows to modify data which is about to be used in template for attachment grid', '1'),
(NULL, 'actionAttributeGroupGridPresenterModifier', 'Modify attribute group grid template data',
'This hook allows to modify data which is about to be used in template for attribute group grid', '1'),
(NULL, 'actionMerchandiseReturnGridPresenterModifier', 'Modify merchandise return grid template data',
'This hook allows to modify data which is about to be used in template for merchandise return grid', '1'),
(NULL, 'actionTaxRulesGroupGridPresenterModifier', 'Modify tax rules group grid template data',
'This hook allows to modify data which is about to be used in template for tax rules group grid', '1'),
(NULL, 'actionAddressGridPresenterModifier', 'Modify address grid template data',
'This hook allows to modify data which is about to be used in template for address grid', '1'),
(NULL, 'actionCreditSlipGridPresenterModifier', 'Modify credit slip grid template data',
'This hook allows to modify data which is about to be used in template for credit slip grid', '1'),
(NULL, 'displayAfterTitleTag', 'After title tag', 'Use this hook to add content after title tag', '1')
ON DUPLICATE KEY UPDATE `title` = VALUES(`title`), `description` = VALUES(`description`);
/* Update wrong hook names */
UPDATE `PREFIX_hook_module` AS hm
INNER JOIN `PREFIX_hook` AS hfrom ON hm.id_hook = hfrom.id_hook AND hfrom.name = 'actionAdministrationPageFormSave'
INNER JOIN `PREFIX_hook` AS hto ON hto.name = 'actionAdministrationPageSave'
SET hm.id_hook = hto.id_hook;
DELETE FROM `PREFIX_hook` WHERE name = 'actionAdministrationPageFormSave';
UPDATE `PREFIX_hook_module` AS hm
INNER JOIN `PREFIX_hook` AS hfrom ON hm.id_hook = hfrom.id_hook AND hfrom.name = 'actionMaintenancePageFormSave'
INNER JOIN `PREFIX_hook` AS hto ON hto.name = 'actionMaintenancePageSave'
SET hm.id_hook = hto.id_hook;
DELETE FROM `PREFIX_hook` WHERE name = 'actionMaintenancePageFormSave';
UPDATE `PREFIX_hook_module` AS hm
INNER JOIN `PREFIX_hook` AS hfrom ON hm.id_hook = hfrom.id_hook AND hfrom.name = 'actionPerformancePageFormSave'
INNER JOIN `PREFIX_hook` AS hto ON hto.name = 'actionPerformancePageSave'
SET hm.id_hook = hto.id_hook;
DELETE FROM `PREFIX_hook` WHERE name = 'actionPerformancePageFormSave';
UPDATE `PREFIX_hook_module` AS hm
INNER JOIN `PREFIX_hook` AS hfrom ON hm.id_hook = hfrom.id_hook AND hfrom.name = 'actionFrontControllerAfterInit'
INNER JOIN `PREFIX_hook` AS hto ON hto.name = 'actionFrontControllerInitAfter'
SET hm.id_hook = hto.id_hook;
DELETE FROM `PREFIX_hook` WHERE name = 'actionFrontControllerAfterInit';
/* Update wrong hook alias */
UPDATE `PREFIX_hook_alias` SET name = 'displayHeader', alias = 'Header' WHERE name = 'Header' AND alias = 'displayHeader';
ALTER TABLE `PREFIX_translation` CHANGE `key` `key` TEXT NOT NULL COLLATE utf8_bin;
ALTER TABLE `PREFIX_admin_filter` CHANGE filter_id filter_id VARCHAR(191) NOT NULL;
ALTER TABLE `PREFIX_admin_filter` ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `PREFIX_admin_filter` CHANGE `controller` `controller` varchar(60) COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_admin_filter` CHANGE `action` `action` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_admin_filter` CHANGE `filter` `filter` longtext COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_admin_filter` CHANGE `filter_id` `filter_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_attribute` COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `PREFIX_attribute` CHANGE `color` `color` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_attribute_lang` COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `PREFIX_attribute_lang` CHANGE `name` `name` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_attribute_shop` COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `PREFIX_attribute_group` COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `PREFIX_attribute_group` CHANGE `group_type` `group_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_attribute_group_lang` COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `PREFIX_attribute_group_lang` CHANGE `name` `name` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_attribute_group_lang` CHANGE `public_name` `public_name` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_attribute_group_shop` COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `PREFIX_lang` COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `PREFIX_lang` CHANGE `name` `name` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_lang` CHANGE `iso_code` `iso_code` varchar(2) COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_lang` CHANGE `language_code` `language_code` varchar(5) COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_lang` CHANGE `locale` `locale` varchar(5) COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_lang` CHANGE `date_format_lite` `date_format_lite` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_lang` CHANGE `date_format_full` `date_format_full` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_lang_shop` COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `PREFIX_shop` COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `PREFIX_shop` CHANGE `name` `name` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_shop` CHANGE `theme_name` `theme_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_shop_group` COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `PREFIX_shop_group` CHANGE `name` `name` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_stock_mvt` COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `PREFIX_stock_mvt` CHANGE `employee_lastname` `employee_lastname` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL;
ALTER TABLE `PREFIX_stock_mvt` CHANGE `employee_firstname` `employee_firstname` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL;
ALTER TABLE `PREFIX_tab` COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `PREFIX_tab` CHANGE `module` `module` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL;
ALTER TABLE `PREFIX_tab` CHANGE `icon` `icon` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL;
ALTER TABLE `PREFIX_tab_lang` COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `PREFIX_tab_lang` CHANGE `name` `name` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_module_history` CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `PREFIX_translation` CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `PREFIX_translation` CHANGE `translation` `translation` text COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_translation` CHANGE `domain` `domain` varchar(80) COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `PREFIX_translation` CHANGE `theme` `theme` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL;

View File

@@ -0,0 +1,6 @@
/* PHP:ps_1771_update_customer_note(); */;
SET SESSION sql_mode='';
SET NAMES 'utf8';
UPDATE `PREFIX_currency` SET numeric_iso_code = LPAD(numeric_iso_code, 3, '0') WHERE LENGTH(numeric_iso_code) != 3;

View File

@@ -0,0 +1,25 @@
SET SESSION sql_mode='';
SET NAMES 'utf8';
INSERT INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `position`) VALUES
(NULL, 'displayAdminGridTableBefore', 'Display before Grid table', 'This hook adds new blocks before Grid component table.', '1'),
(NULL, 'displayAdminGridTableAfter', 'Display after Grid table', 'This hook adds new blocks after Grid component table.', '1')
ON DUPLICATE KEY UPDATE `title` = VALUES(`title`), `description` = VALUES(`description`);
UPDATE `PREFIX_hook_module` AS hm
INNER JOIN `PREFIX_hook` AS hfrom ON hm.id_hook = hfrom.id_hook AND hfrom.name = 'displayAdminListBefore'
INNER JOIN `PREFIX_hook` AS hto ON hto.name = 'displayAdminGridTableBefore'
SET hm.id_hook = hto.id_hook;
DELETE FROM `PREFIX_hook` WHERE name = 'displayAdminListBefore';
UPDATE `PREFIX_hook_module` AS hm
INNER JOIN `PREFIX_hook` AS hfrom ON hm.id_hook = hfrom.id_hook AND hfrom.name = 'displayAdminListAfter'
INNER JOIN `PREFIX_hook` AS hto ON hto.name = 'displayAdminGridTableAfter'
SET hm.id_hook = hto.id_hook;
DELETE FROM `PREFIX_hook` WHERE name = 'displayAdminListAfter';
INSERT IGNORE INTO `PREFIX_hook_alias` (`name`, `alias`) VALUES
('displayAdminGridTableBefore', 'displayAdminListBefore'),
('displayAdminGridTableAfter', 'displayAdminListAfter')
;

View File

@@ -0,0 +1,4 @@
SET SESSION sql_mode='';
SET NAMES 'utf8';
ALTER TABLE `PREFIX_currency` MODIFY COLUMN `numeric_iso_code` varchar(3) DEFAULT NULL NULL;

View File

@@ -0,0 +1,212 @@
SET SESSION sql_mode='';
SET NAMES 'utf8mb4';
DROP TABLE IF EXISTS `PREFIX_order_slip_detail_tax`;
INSERT INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `position`) VALUES
(NULL, 'actionPresentCart', 'Cart Presenter', 'This hook is called before a cart is presented', '1'),
(NULL, 'actionPresentOrder', 'Order footer', 'This hook is called before an order is presented', '1'),
(NULL, 'actionPresentOrderReturn', 'Order Return Presenter', 'This hook is called before an order return is presented', '1'),
(NULL, 'actionPresentProduct', 'Product Presenter', 'This hook is called before a product is presented', '1'),
(NULL, 'displayBanner', 'Display Banner', 'Use this hook for banners on top of every pages', '1'),
(NULL, 'actionModuleUninstallBefore', 'Module uninstall before', 'This hook is called before module uninstall process', '1'),
(NULL, 'actionModuleUninstallAfter', 'Module uninstall after', 'This hook is called at the end of module uninstall process', '1'),
(NULL, 'displayCartModalContent', 'Cart Presenter', 'This hook displays content in the middle of the window that appears after adding product to cart', '1'),
(NULL, 'displayCartModalFooter', 'Cart Presenter', 'This hook displays content in the bottom of window that appears after adding product to cart', '1'),
(NULL, 'displayHeaderCategory', 'Category header', 'This hook adds new blocks above the products listing in a category/search', '1'),
(NULL, 'actionCheckoutRender', 'Checkout process render', 'This hook is called when checkout process is constructed', '1'),
(NULL, 'actionPresentProductListing', 'Product Listing Presenter', 'This hook is called before a product listing is presented', '1'),
(NULL, 'actionGetProductPropertiesAfterUnitPrice', 'Product Properties', 'This hook is called after defining the properties of a product', '1'),
(NULL, 'actionProductSearchProviderRunQueryBefore', 'Runs an action before ProductSearchProviderInterface::RunQuery()', 'Required to modify an SQL query before executing it', '1'),
(NULL, 'actionProductSearchProviderRunQueryAfter', 'Runs an action after ProductSearchProviderInterface::RunQuery()', 'Required to return a previous state of an SQL query or/and to change a result of the SQL query after executing it', '1'),
(NULL, 'actionOverrideEmployeeImage', 'Override Employee Image', 'This hook is used to override the employee image', '1'),
(NULL, 'actionFrontControllerSetVariables', 'Add variables in JavaScript object and Smarty templates', 'Add variables to javascript object that is available in Front Office. These are also available in smarty templates in modules.your_module_name.', '1'),
(NULL, 'displayAdminGridTableBefore', 'Display before Grid table', 'This hook adds new blocks before Grid component table.', '1'),
(NULL, 'displayAdminGridTableAfter', 'Display after Grid table', 'This hook adds new blocks after Grid component table.', '1'),
(NULL, 'displayAdminOrderCreateExtraButtons', 'Add buttons on the create order page dropdown', 'Add buttons on the create order page dropdown', '1'),
(NULL, 'actionFeatureFlagForm', 'Modify feature flag options form content', 'This hook allows to modify the Feature Flag page form FormBuilder', 1),
(NULL, 'actionFeatureFlagSave', 'Modify feature flag options form saved data', 'This hook allows to modify the Feature Flag data being submitted through the form after it was saved', 1),
(NULL, 'actionProductFormBuilderModifier', 'Modify product identifiable object form', 'This hook allows to modify product identifiable object form content by modifying form builder data or FormBuilder itself', '1'),
(NULL, 'actionBeforeUpdateProductFormHandler', 'Modify product identifiable object data before updating it', 'This hook allows to modify product identifiable object form data before it was updated', '1'),
(NULL, 'actionAfterUpdateProductFormHandler', 'Modify product identifiable object data after updating it', 'This hook allows to modify product identifiable object form data after it was updated', '1'),
(NULL, 'actionBeforeCreateProductFormHandler', 'Modify product identifiable object data before creating it', 'This hook allows to modify product identifiable object form data before it was created', '1'),
(NULL, 'actionAfterCreateProductFormHandler', 'Modify product identifiable object data after creating it', 'This hook allows to modify product identifiable object form data after it was created', '1'),
(NULL,'actionCustomerAddressGridDefinitionModifier','Modify customer address grid definition','This hook allows to alter customer address grid columns, actions and filters','1'),
(NULL,'actionCartRuleGridDefinitionModifier','Modify cart rule grid definition','This hook allows to alter cart rule grid columns, actions and filters','1'),
(NULL,'actionOrderStatesGridDefinitionModifier','Modify order states grid definition','This hook allows to alter order states grid columns, actions and filters','1'),
(NULL,'actionOrderReturnStatesGridDefinitionModifier','Modify order return states grid definition','This hook allows to alter order return states grid columns, actions and filters','1'),
(NULL,'actionOutstandingGridDefinitionModifier','Modify outstanding grid definition','This hook allows to alter outstanding grid columns, actions and filters','1'),
(NULL,'actionCarrierGridDefinitionModifier','Modify carrier grid definition','This hook allows to alter carrier grid columns, actions and filters','1'),
(NULL,'actionZoneGridDefinitionModifier','Modify zone grid definition','This hook allows to alter zone grid columns, actions and filters','1'),
(NULL,'actionCustomerDiscountGridQueryBuilderModifier','Modify customer discount grid query builder','This hook allows to alter Doctrine query builder for customer discount grid','1'),
(NULL,'actionCustomerAddressGridQueryBuilderModifier','Modify customer address grid query builder','This hook allows to alter Doctrine query builder for customer address grid','1'),
(NULL,'actionCartRuleGridQueryBuilderModifier','Modify cart rule grid query builder','This hook allows to alter Doctrine query builder for cart rule grid','1'),
(NULL,'actionOrderStatesGridQueryBuilderModifier','Modify order states grid query builder','This hook allows to alter Doctrine query builder for order states grid','1'),
(NULL,'actionOrderReturnStatesGridQueryBuilderModifier','Modify order return states grid query builder','This hook allows to alter Doctrine query builder for order return states grid','1'),
(NULL,'actionOutstandingGridQueryBuilderModifier','Modify outstanding grid query builder','This hook allows to alter Doctrine query builder for outstanding grid','1'),
(NULL,'actionCarrierGridQueryBuilderModifier','Modify carrier grid query builder','This hook allows to alter Doctrine query builder for carrier grid','1'),
(NULL,'actionZoneGridQueryBuilderModifier','Modify zone grid query builder','This hook allows to alter Doctrine query builder for zone grid','1'),
(NULL,'actionCustomerDiscountGridDataModifier','Modify customer discount grid data','This hook allows to modify customer discount grid data','1'),
(NULL,'actionCustomerAddressGridDataModifier','Modify customer address grid data','This hook allows to modify customer address grid data','1'),
(NULL,'actionCartRuleGridDataModifier','Modify cart rule grid data','This hook allows to modify cart rule grid data','1'),
(NULL,'actionOrderStatesGridDataModifier','Modify order states grid data','This hook allows to modify order states grid data','1'),
(NULL,'actionOrderReturnStatesGridDataModifier','Modify order return states grid data','This hook allows to modify order return states grid data','1'),
(NULL,'actionOutstandingGridDataModifier','Modify outstanding grid data','This hook allows to modify outstanding grid data','1'),
(NULL,'actionCarrierGridDataModifier','Modify carrier grid data','This hook allows to modify carrier grid data','1'),
(NULL,'actionZoneGridDataModifier','Modify zone grid data','This hook allows to modify zone grid data','1'),
(NULL,'actionCustomerDiscountGridFilterFormModifier','Modify customer discount grid filters','This hook allows to modify filters for customer discount grid','1'),
(NULL,'actionCustomerAddressGridFilterFormModifier','Modify customer address grid filters','This hook allows to modify filters for customer address grid','1'),
(NULL,'actionCartRuleGridFilterFormModifier','Modify cart rule grid filters','This hook allows to modify filters for cart rule grid','1'),
(NULL,'actionOrderStatesGridFilterFormModifier','Modify order states grid filters','This hook allows to modify filters for order states grid','1'),
(NULL,'actionOrderReturnStatesGridFilterFormModifier','Modify order return states grid filters','This hook allows to modify filters for order return states grid','1'),
(NULL,'actionOutstandingGridFilterFormModifier','Modify outstanding grid filters','This hook allows to modify filters for outstanding grid','1'),
(NULL,'actionCarrierGridFilterFormModifier','Modify carrier grid filters','This hook allows to modify filters for carrier grid','1'),
(NULL,'actionZoneGridFilterFormModifier','Modify zone grid filters','This hook allows to modify filters for zone grid','1'),
(NULL,'actionCustomerDiscountGridPresenterModifier','Modify customer discount grid template data','This hook allows to modify data which is about to be used in template for customer discount grid','1'),
(NULL,'actionCustomerAddressGridPresenterModifier','Modify customer address grid template data','This hook allows to modify data which is about to be used in template for customer address grid','1'),
(NULL,'actionCartRuleGridPresenterModifier','Modify cart rule grid template data','This hook allows to modify data which is about to be used in template for cart rule grid','1'),
(NULL,'actionOrderStatesGridPresenterModifier','Modify order states grid template data','This hook allows to modify data which is about to be used in template for order states grid','1'),
(NULL,'actionOrderReturnStatesGridPresenterModifier','Modify order return states grid template data','This hook allows to modify data which is about to be used in template for order return states grid','1'),
(NULL,'actionOutstandingGridPresenterModifier','Modify outstanding grid template data','This hook allows to modify data which is about to be used in template for outstanding grid','1'),
(NULL,'actionCarrierGridPresenterModifier','Modify carrier grid template data','This hook allows to modify data which is about to be used in template for carrier grid','1'),
(NULL,'actionZoneGridPresenterModifier','Modify zone grid template data','This hook allows to modify data which is about to be used in template for zone grid','1'),
(NULL,'actionCustomerDiscountGridDefinitionModifier','Modify customer discount grid definition','This hook allows to alter customer discount grid columns, actions and filters','1'),
(NULL,'actionPerformancePageSmartyForm','Modify performance page smarty options form content','This hook allows to modify performance page smarty options form FormBuilder','1'),
(NULL,'actionPerformancePageDebugModeForm','Modify performance page debug mode options form content','This hook allows to modify performance page debug mode options form FormBuilder','1'),
(NULL,'actionPerformancePageOptionalFeaturesForm','Modify performance page optional features options form content','This hook allows to modify performance page optional features options form FormBuilder','1'),
(NULL,'actionPerformancePageCombineCompressCacheForm','Modify performance page combine compress cache options form content','This hook allows to modify performance page combine compress cache options form FormBuilder','1'),
(NULL,'actionPerformancePageMediaServersForm','Modify performance page media servers options form content','This hook allows to modify performance page media servers options form FormBuilder','1'),
(NULL,'actionPerformancePagecachingForm','Modify performance pagecaching options form content','This hook allows to modify performance pagecaching options form FormBuilder','1'),
(NULL,'actionAdministrationPageGeneralForm','Modify administration page general options form content','This hook allows to modify administration page general options form FormBuilder','1'),
(NULL,'actionAdministrationPageUploadQuotaForm','Modify administration page upload quota options form content','This hook allows to modify administration page upload quota options form FormBuilder','1'),
(NULL,'actionAdministrationPageNotificationsForm','Modify administration page notifications options form content','This hook allows to modify administration page notifications options form FormBuilder','1'),
(NULL,'actionShippingPreferencesPageHandlingForm','Modify shipping preferences page handling options form content','This hook allows to modify shipping preferences page handling options form FormBuilder','1'),
(NULL,'actionShippingPreferencesPageCarrierOptionsForm','Modify shipping preferences page carrier options options form content','This hook allows to modify shipping preferences page carrier options options form FormBuilder','1'),
(NULL,'actionOrderPreferencesPageGeneralForm','Modify order preferences page general options form content','This hook allows to modify order preferences page general options form FormBuilder','1'),
(NULL,'actionOrderPreferencesPageGiftOptionsForm','Modify order preferences page gift options options form content','This hook allows to modify order preferences page gift options options form FormBuilder','1'),
(NULL,'actionProductPreferencesPageGeneralForm','Modify product preferences page general options form content','This hook allows to modify product preferences page general options form FormBuilder','1'),
(NULL,'actionProductPreferencesPagePaginationForm','Modify product preferences page pagination options form content','This hook allows to modify product preferences page pagination options form FormBuilder','1'),
(NULL,'actionProductPreferencesPagePageForm','Modify product preferences page page options form content','This hook allows to modify product preferences page page options form FormBuilder','1'),
(NULL,'actionProductPreferencesPageStockForm','Modify product preferences page stock options form content','This hook allows to modify product preferences page stock options form FormBuilder','1'),
(NULL,'actionGeolocationPageByAddressForm','Modify geolocation page by address options form content','This hook allows to modify geolocation page by address options form FormBuilder','1'),
(NULL,'actionGeolocationPageWhitelistForm','Modify geolocation page whitelist options form content','This hook allows to modify geolocation page whitelist options form FormBuilder','1'),
(NULL,'actionGeolocationPageOptionsForm','Modify geolocation page options options form content','This hook allows to modify geolocation page options options form FormBuilder','1'),
(NULL,'actionLocalizationPageConfigurationForm','Modify localization page configuration options form content','This hook allows to modify localization page configuration options form FormBuilder','1'),
(NULL,'actionLocalizationPageLocalUnitsForm','Modify localization page local units options form content','This hook allows to modify localization page local units options form FormBuilder','1'),
(NULL,'actionLocalizationPageAdvancedForm','Modify localization page advanced options form content','This hook allows to modify localization page advanced options form FormBuilder','1'),
(NULL,'actionFeatureFlagForm','Modify feature flag options form content','This hook allows to modify feature flag options form FormBuilder','1'),
(NULL,'actionPerformancePageSmartySave','Modify performance page smarty options form saved data','This hook allows to modify data of performance page smarty options form after it was saved','1'),
(NULL,'actionPerformancePageDebugModeSave','Modify performance page debug mode options form saved data','This hook allows to modify data of performance page debug mode options form after it was saved','1'),
(NULL,'actionPerformancePageOptionalFeaturesSave','Modify performance page optional features options form saved data','This hook allows to modify data of performance page optional features options form after it was saved','1'),
(NULL,'actionPerformancePageCombineCompressCacheSave','Modify performance page combine compress cache options form saved data','This hook allows to modify data of performance page combine compress cache options form after it was saved','1'),
(NULL,'actionPerformancePageMediaServersSave','Modify performance page media servers options form saved data','This hook allows to modify data of performance page media servers options form after it was saved','1'),
(NULL,'actionPerformancePagecachingSave','Modify performance pagecaching options form saved data','This hook allows to modify data of performance pagecaching options form after it was saved','1'),
(NULL,'actionAdministrationPageGeneralSave','Modify administration page general options form saved data','This hook allows to modify data of administration page general options form after it was saved','1'),
(NULL,'actionAdministrationPageUploadQuotaSave','Modify administration page upload quota options form saved data','This hook allows to modify data of administration page upload quota options form after it was saved','1'),
(NULL,'actionAdministrationPageNotificationsSave','Modify administration page notifications options form saved data','This hook allows to modify data of administration page notifications options form after it was saved','1'),
(NULL,'actionShippingPreferencesPageHandlingSave','Modify shipping preferences page handling options form saved data','This hook allows to modify data of shipping preferences page handling options form after it was saved','1'),
(NULL,'actionShippingPreferencesPageCarrierOptionsSave','Modify shipping preferences page carrier options options form saved data','This hook allows to modify data of shipping preferences page carrier options options form after it was saved','1'),
(NULL,'actionOrderPreferencesPageGeneralSave','Modify order preferences page general options form saved data','This hook allows to modify data of order preferences page general options form after it was saved','1'),
(NULL,'actionOrderPreferencesPageGiftOptionsSave','Modify order preferences page gift options options form saved data','This hook allows to modify data of order preferences page gift options options form after it was saved','1'),
(NULL,'actionProductPreferencesPageGeneralSave','Modify product preferences page general options form saved data','This hook allows to modify data of product preferences page general options form after it was saved','1'),
(NULL,'actionProductPreferencesPagePaginationSave','Modify product preferences page pagination options form saved data','This hook allows to modify data of product preferences page pagination options form after it was saved','1'),
(NULL,'actionProductPreferencesPagePageSave','Modify product preferences page page options form saved data','This hook allows to modify data of product preferences page page options form after it was saved','1'),
(NULL,'actionProductPreferencesPageStockSave','Modify product preferences page stock options form saved data','This hook allows to modify data of product preferences page stock options form after it was saved','1'),
(NULL,'actionGeolocationPageByAddressSave','Modify geolocation page by address options form saved data','This hook allows to modify data of geolocation page by address options form after it was saved','1'),
(NULL,'actionGeolocationPageWhitelistSave','Modify geolocation page whitelist options form saved data','This hook allows to modify data of geolocation page whitelist options form after it was saved','1'),
(NULL,'actionGeolocationPageOptionsSave','Modify geolocation page options options form saved data','This hook allows to modify data of geolocation page options options form after it was saved','1'),
(NULL,'actionLocalizationPageConfigurationSave','Modify localization page configuration options form saved data','This hook allows to modify data of localization page configuration options form after it was saved','1'),
(NULL,'actionLocalizationPageLocalUnitsSave','Modify localization page local units options form saved data','This hook allows to modify data of localization page local units options form after it was saved','1'),
(NULL,'actionLocalizationPageAdvancedSave','Modify localization page advanced options form saved data','This hook allows to modify data of localization page advanced options form after it was saved','1'),
(NULL,'actionFeatureFlagSave','Modify feature flag options form saved data','This hook allows to modify data of feature flag options form after it was saved','1'),
(NULL,'actionOrderStateFormBuilderModifier','Modify order state identifiable object form','This hook allows to modify order state identifiable object forms content by modifying form builder data or FormBuilder itself','1'),
(NULL,'actionOrderReturnStateFormBuilderModifier','Modify order return state identifiable object form','This hook allows to modify order return state identifiable object forms content by modifying form builder data or FormBuilder itself','1'),
(NULL,'actionZoneFormBuilderModifier','Modify zone identifiable object form','This hook allows to modify zone identifiable object forms content by modifying form builder data or FormBuilder itself','1'),
(NULL,'actionBeforeUpdateOrderStateFormHandler','Modify order state identifiable object data before updating it','This hook allows to modify order state identifiable object forms data before it was updated','1'),
(NULL,'actionBeforeUpdateOrderReturnStateFormHandler','Modify order return state identifiable object data before updating it','This hook allows to modify order return state identifiable object forms data before it was updated','1'),
(NULL,'actionBeforeUpdateZoneFormHandler','Modify zone identifiable object data before updating it','This hook allows to modify zone identifiable object forms data before it was updated','1'),
(NULL,'actionAfterUpdateOrderStateFormHandler','Modify order state identifiable object data after updating it','This hook allows to modify order state identifiable object forms data after it was updated','1'),
(NULL,'actionAfterUpdateOrderReturnStateFormHandler','Modify order return state identifiable object data after updating it','This hook allows to modify order return state identifiable object forms data after it was updated','1'),
(NULL,'actionAfterUpdateZoneFormHandler','Modify zone identifiable object data after updating it','This hook allows to modify zone identifiable object forms data after it was updated','1'),
(NULL,'actionBeforeCreateOrderStateFormHandler','Modify order state identifiable object data before creating it','This hook allows to modify order state identifiable object forms data before it was created','1'),
(NULL,'actionBeforeCreateOrderReturnStateFormHandler','Modify order return state identifiable object data before creating it','This hook allows to modify order return state identifiable object forms data before it was created','1'),
(NULL,'actionBeforeCreateZoneFormHandler','Modify zone identifiable object data before creating it','This hook allows to modify zone identifiable object forms data before it was created','1'),
(NULL,'actionAfterCreateOrderStateFormHandler','Modify order state identifiable object data after creating it','This hook allows to modify order state identifiable object forms data after it was created','1'),
(NULL,'actionAfterCreateOrderReturnStateFormHandler','Modify order return state identifiable object data after creating it','This hook allows to modify order return state identifiable object forms data after it was created','1'),
(NULL,'actionAfterCreateZoneFormHandler','Modify zone identifiable object data after creating it','This hook allows to modify zone identifiable object forms data after it was created','1')
ON DUPLICATE KEY UPDATE `title` = VALUES(`title`), `description` = VALUES(`description`);
ALTER TABLE `PREFIX_employee` ADD `has_enabled_gravatar` TINYINT UNSIGNED DEFAULT 0 NOT NULL;
INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES
('PS_COOKIE_SAMESITE', 'Lax', NOW(), NOW()),
('PS_SHOW_LABEL_OOS_LISTING_PAGES', '1', NOW(), NOW()),
('ADDONS_API_MODULE_CHANNEL', 'stable', NOW(), NOW())
;
ALTER TABLE `PREFIX_hook` ADD `active` TINYINT(1) UNSIGNED DEFAULT 1 NOT NULL AFTER `description`;
ALTER TABLE `PREFIX_orders` ADD COLUMN `note` TEXT AFTER `date_upd`;
ALTER TABLE `PREFIX_currency` CHANGE `numeric_iso_code` `numeric_iso_code` varchar(3) NULL DEFAULT NULL;
UPDATE `PREFIX_configuration` SET `value` = '4' WHERE `name` = 'PS_LOGS_BY_EMAIL' AND `value` = '5';
ALTER TABLE `PREFIX_log`
ADD `id_shop` INT(10) unsigned DEFAULT NULL after `object_id`,
ADD `id_shop_group` INT(10) unsigned DEFAULT NULL after `id_shop`,
ADD `id_lang` INT(10) unsigned DEFAULT NULL after `id_shop_group`,
ADD `in_all_shops` TINYINT(1) unsigned NOT NULL DEFAULT '0'
;
ALTER TABLE `PREFIX_tab` ADD `wording` VARCHAR(255) DEFAULT NULL AFTER `icon`;
ALTER TABLE `PREFIX_tab` ADD `wording_domain` VARCHAR(255) DEFAULT NULL AFTER `wording`;
UPDATE `PREFIX_product` SET `location` = '' WHERE `location` IS NULL;
ALTER TABLE `PREFIX_product` MODIFY COLUMN `location` VARCHAR(255) NOT NULL DEFAULT '';
UPDATE `PREFIX_product_attribute` SET `location` = '' WHERE `location` IS NULL;
ALTER TABLE `PREFIX_product_attribute` MODIFY COLUMN `location` VARCHAR(255) NOT NULL DEFAULT '';
UPDATE `PREFIX_product` SET `redirect_type` = '404' WHERE `redirect_type` = '';
ALTER TABLE `PREFIX_product` MODIFY COLUMN `redirect_type` ENUM(
'404', '301-product', '302-product', '301-category', '302-category'
) NOT NULL DEFAULT '404';
ALTER TABLE `PREFIX_product` ADD `product_type` ENUM(
'standard', 'pack', 'virtual', 'combinations', ''
) NOT NULL DEFAULT '';
/* First set all products to standard type, then update them based on cached columns that identify the type */
UPDATE `PREFIX_product` SET `product_type` = "standard";
UPDATE `PREFIX_product` SET `product_type` = "combinations" WHERE `cache_default_attribute` != 0;
UPDATE `PREFIX_product` SET `product_type` = "pack" WHERE `cache_is_pack` = 1;
UPDATE `PREFIX_product` SET `product_type` = "virtual" WHERE `is_virtual` = 1;
/* PHP:ps_1780_add_feature_flag_tab(); */;
/* this table should be created by Doctrine but we need to perform INSERT and the 1.7.8.0.sql script is called
before Doctrine schema update */
/* consequently we create the table manually */
CREATE TABLE IF NOT EXISTS `PREFIX_feature_flag` (
`id_feature_flag` INT(10) unsigned NOT NULL AUTO_INCREMENT,
`name` VARCHAR(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`state` TINYINT(1) NOT NULL DEFAULT '0',
`label_wording` VARCHAR(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`label_domain` VARCHAR(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`description_wording` VARCHAR(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`description_domain` VARCHAR(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
PRIMARY KEY (`id_feature_flag`),
UNIQUE KEY `UNIQ_91700F175E237E06` (`name`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
INSERT INTO `PREFIX_feature_flag` (`name`, `state`, `label_wording`, `label_domain`, `description_wording`, `description_domain`)
VALUES
('product_page_v2', 0, 'Experimental product page', 'Admin.Advparameters.Feature', 'This page benefits from increased performance and includes new features such as a new combination management system. Please note this is a work in progress and some features are not available yet.', 'Admin.Advparameters.Help');
DROP INDEX id_shop ON `PREFIX_shop_url`;
DROP INDEX full_shop_url ON `PREFIX_shop_url`;
DROP INDEX full_shop_url_ssl ON `PREFIX_shop_url`;
ALTER TABLE `PREFIX_shop_url` CHANGE id_shop_url id_shop_url INT AUTO_INCREMENT NOT NULL;
ALTER TABLE `PREFIX_shop_url` CHANGE id_shop id_shop INT NOT NULL;
CREATE INDEX IDX_279F19DA274A50A0 ON `PREFIX_shop_url` (id_shop);
ALTER TABLE `PREFIX_shop` ADD color VARCHAR(50) NOT NULL;
ALTER TABLE `PREFIX_shop_group` ADD color VARCHAR(50) NOT NULL;

View File

@@ -0,0 +1,7 @@
SET SESSION sql_mode='';
SET NAMES 'utf8mb4';
INSERT INTO `PREFIX_product_supplier` (id_product, id_supplier, product_supplier_reference, product_supplier_price_te, id_currency)
SELECT ps.id_product, ps.id_supplier, ps.product_supplier_reference, ps.product_supplier_price_te, ps.id_currency
FROM `PREFIX_product_supplier` as ps
ON DUPLICATE KEY UPDATE `PREFIX_product_supplier`.id_product = ps.id_product;

View File

@@ -0,0 +1,128 @@
SET SESSION sql_mode='';
SET NAMES 'utf8mb4';
UPDATE `PREFIX_tab` SET `wording`='Dashboard', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminDashboard' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Sell', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='SELL' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Orders', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentOrders' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Orders', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminOrders' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Invoices', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminInvoices' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Credit Slips', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminSlip' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Delivery Slips', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminDeliverySlip' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Shopping Carts', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminCarts' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Catalog', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminCatalog' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Products', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminProducts' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Categories', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminCategories' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Monitoring', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminTracking' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Attributes & Features', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentAttributesGroups' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Attributes', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminAttributesGroups' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Features', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminFeatures' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Brands & Suppliers', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentManufacturers' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Brands', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminManufacturers' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Suppliers', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminSuppliers' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Files', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminAttachments' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Discounts', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentCartRules' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Cart Rules', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminCartRules' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Catalog Price Rules', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminSpecificPriceRule' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Stock', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminStockManagement' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Customers', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentCustomer' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Customers', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminCustomers' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Addresses', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminAddresses' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Outstanding', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminOutstanding' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Customer Service', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentCustomerThreads' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Customer Service', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminCustomerThreads' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Order Messages', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminOrderMessage' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Merchandise Returns', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminReturn' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Stats', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminStats' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Warehouses', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminWarehouses' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Stock Management', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentStockManagement' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Stock Management', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminStockManagement' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Stock Movement', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminStockMvt' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Instant Stock Status', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminStockInstantState' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Stock Coverage', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminStockCover' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Supply orders', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminSupplyOrders' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Configuration', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminStockConfiguration' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Improve', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='IMPROVE' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Modules', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentModulesSf' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Module Manager', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminModulesSf' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Modules', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminModulesManage' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Alerts', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminModulesNotifications' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Updates', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminModulesUpdates' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Module Catalog', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentModulesCatalog' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Module Catalog', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminModulesCatalog' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Module Selections', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminAddonsCatalog' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Design', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentThemes' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Theme & Logo', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminThemes' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Theme Catalog', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminThemesCatalog' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Email Theme', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentMailTheme' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Email Theme', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminMailTheme' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Pages', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminCmsContent' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Positions', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminModulesPositions' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Image Settings', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminImages' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Shipping', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentShipping' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Carriers', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminCarriers' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Preferences', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminShipping' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Payment', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentPayment' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Payment Methods', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminPayment' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Preferences', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminPaymentPreferences' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='International', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminInternational' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Localization', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentLocalization' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Localization', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminLocalization' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Languages', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminLanguages' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Currencies', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminCurrencies' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Geolocation', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminGeolocation' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Locations', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentCountries' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Zones', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminZones' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Countries', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminCountries' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='States', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminStates' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Taxes', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentTaxes' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Taxes', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminTaxes' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Tax Rules', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminTaxRulesGroup' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Translations', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminTranslations' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Configure', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='CONFIGURE' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Shop Parameters', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='ShopParameters' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='General', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentPreferences' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='General', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminPreferences' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Maintenance', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminMaintenance' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Order Settings', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentOrderPreferences' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Order Settings', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminOrderPreferences' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Statuses', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminStatuses' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Product Settings', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminPPreferences' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Customer Settings', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentCustomerPreferences' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Customer Settings', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminCustomerPreferences' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Groups', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminGroups' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Titles', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminGenders' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Contact', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentStores' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Contacts', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminContacts' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Stores', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminStores' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Traffic & SEO', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentMeta' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='SEO & URLs', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminMeta' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Search Engines', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminSearchEngines' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Referrers', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminReferrers' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Search', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentSearchConf' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Search', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminSearchConf' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Tags', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminTags' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Advanced Parameters', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminAdvancedParameters' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Information', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminInformation' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Performance', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminPerformance' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Administration', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminAdminPreferences' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='E-mail', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminEmails' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Import', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminImport' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Team', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentEmployees' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Employees', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminEmployees' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Profiles', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminProfiles' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Permissions', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminAccess' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Database', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminParentRequestSql' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='SQL Manager', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminRequestSql' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='DB Backup', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminBackup' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Logs', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminLogs' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Webservice', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminWebservice' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Multistore', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminShopGroup' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Multistore', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminShopUrl' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Experimental Features', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminFeatureFlag' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Quick Access', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminQuickAccesses' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='More', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='DEFAULT' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Link List', `wording_domain`='Modules.Linklist.Admin' WHERE `class_name`='AdminLinkWidget' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
UPDATE `PREFIX_tab` SET `wording`='Theme & Logo', `wording_domain`='Admin.Navigation.Menu' WHERE `class_name`='AdminThemesParent' AND COALESCE(`wording`, '') = '' AND COALESCE(`wording_domain`, '') = '';
INSERT IGNORE INTO `PREFIX_configuration` (`id_shop_group`, `id_shop`, `name`, `value`, `date_add`, `date_upd`)
SELECT `id_shop_group`, `id_shop`, 'PS_LOGS_EMAIL_RECEIVERS', `value`, `date_add`, `date_upd` FROM `PREFIX_configuration` WHERE `name` = 'PS_SHOP_EMAIL';

View File

@@ -0,0 +1,4 @@
SET SESSION sql_mode='';
SET NAMES 'utf8mb4';
ALTER TABLE `PREFIX_state` MODIFY COLUMN `name` VARCHAR(80) NOT NULL;

View File

@@ -0,0 +1,4 @@
SET SESSION sql_mode='';
SET NAMES 'utf8mb4';
DELETE FROM `PREFIX_smarty_cache`;

View File

@@ -0,0 +1,5 @@
SET SESSION sql_mode='';
SET NAMES 'utf8';
DELETE FROM `PREFIX_configuration` WHERE `name` = 'PS_SMARTY_CACHING_TYPE';
UPDATE `PREFIX_translation` set theme = null WHERE `theme` = 'classic';

View File

@@ -0,0 +1,243 @@
SET SESSION sql_mode='';
SET NAMES 'utf8mb4';
DROP TABLE IF EXISTS `PREFIX_referrer`;
DROP TABLE IF EXISTS `PREFIX_referrer_cache`;
DROP TABLE IF EXISTS `PREFIX_referrer_shop`;
DROP TABLE IF EXISTS `PREFIX_attribute_impact`;
/* Remove page Referrers */
## Remove Tabs
/* PHP:ps_remove_controller_tab('AdminThemesCatalog'); */;
/* PHP:ps_remove_controller_tab('AdminParentModulesCatalog'); */;
/* PHP:ps_remove_controller_tab('AdminModulesCatalog'); */;
/* PHP:ps_remove_controller_tab('AdminAddonsCatalog'); */;
/* PHP:ps_remove_controller_tab('AdminReferrers'); */;
## Remove Roles
/* For SalesMan profile, remove parent tab `Traffic & SEO` */
DELETE FROM `PREFIX_access`
WHERE `id_authorization_role` IN (SELECT `id_authorization_role` FROM `PREFIX_authorization_role` WHERE `slug` LIKE 'ROLE_MOD_TAB_ADMINPARENTMETA_%')
AND `id_profile` = 4;
## Remove Configuration
DELETE FROM `PREFIX_configuration`
WHERE `name` IN ('PS_REFERRERS_CACHE_LIKE', 'PS_REFERRERS_CACHE_DATE');
INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES
('PS_MAIL_DKIM_ENABLE', '0', NOW(), NOW()),
('PS_MAIL_DKIM_DOMAIN', '', NOW(), NOW()),
('PS_MAIL_DKIM_SELECTOR', '', NOW(), NOW()),
('PS_MAIL_DKIM_KEY', '', NOW(), NOW()),
('PS_WEBP_QUALITY', '80', NOW(), NOW()),
('PS_SECURITY_TOKEN', '1', NOW(), NOW())
;
INSERT INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `position`) VALUES
(NULL, 'actionValidateOrderAfter', 'New Order', 'This hook is called after validating an order by core', '1'),
(NULL, 'actionAdminOrdersTrackingNumberUpdate', 'After setting the tracking number for the order', 'This hook allows you to execute code after the unique tracking number for the order was added', '1'),
(NULL, 'actionAdminSecurityControllerPostProcessBefore', 'On post-process in Admin Security Controller', 'This hook is called on Admin Security Controller post-process before processing any form', '1'),
(NULL, 'actionAdminSecurityControllerPostProcessGeneralBefore', 'On post-process in Admin Security Controller', 'This hook is called on Admin Security Controller post-process before processing the General form', '1'),
(NULL, 'dashboardZoneThree', 'Dashboard column three', 'This hook is displayed in the third column of the dashboard', '1'),
(NULL, 'actionPresentPaymentOptions', 'Payment options Presenter', 'This hook is called before payment options are presented', '1'),
(NULL, 'actionCustomerLogoutBefore', 'Before customer logout', 'This hook allows you to execute code before customer logout', '1'),
(NULL, 'actionCustomerLogoutAfter', 'After customer logout', 'This hook allows you to execute code after customer logout', '1'),
(NULL, 'displayCheckoutBeforeConfirmation', 'Show custom content before checkout confirmation', 'This hook allows you to display custom content at the end of checkout process', '1'),
(NULL, 'displayCheckoutSummaryTop', 'Cart summary top', 'This hook allows you to display new elements in top of cart summary', '1'),
(NULL, 'displayAdminThemesListAfter', 'BO themes list extra content', 'This hook displays content after the themes list in the back office', '1'),
(NULL, 'displayModuleConfigureExtraButtons', 'Module configuration - After toolbar buttons', 'This hook allows to add toolbar''s additional content on module configuration page', '1'),
(NULL, 'actionGetAlternativeSearchPanels', 'Additional search panel', 'This hook allows to add an additional search panel for external providers in PrestaShop back office', '1')
ON DUPLICATE KEY UPDATE `title` = VALUES(`title`), `description` = VALUES(`description`);
/* Auto generated hooks added for version 8.0.0 */
INSERT INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `position`) VALUES
(NULL, 'actionCreateProductFormBuilderModifier', 'Modify create product identifiable object form', 'This hook allows to modify create product identifiable object forms content by modifying form builder data or FormBuilder itself', '1'),
(NULL, 'actionCombinationListFormBuilderModifier', 'Modify combination list identifiable object form', 'This hook allows to modify combination list identifiable object forms content by modifying form builder data or FormBuilder itself', '1'),
(NULL, 'actionProductImageFormBuilderModifier', 'Modify product image identifiable object form', 'This hook allows to modify product image identifiable object forms content by modifying form builder data or FormBuilder itself', '1'),
(NULL, 'actionSearchEngineFormBuilderModifier', 'Modify search engine identifiable object form', 'This hook allows to modify search engine identifiable object forms content by modifying form builder data or FormBuilder itself', '1'),
(NULL, 'actionCategoryTreeSelectorFormBuilderModifier', 'Modify category tree selector identifiable object form', 'This hook allows to modify category tree selector identifiable object forms content by modifying form builder data or FormBuilder itself', '1'),
(NULL, 'actionSqlRequestFormDataProviderData', 'Provide sql request identifiable object form data for update', 'This hook allows to provide sql request identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionCustomerFormDataProviderData', 'Provide customer identifiable object form data for update', 'This hook allows to provide customer identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionLanguageFormDataProviderData', 'Provide language identifiable object form data for update', 'This hook allows to provide language identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionCurrencyFormDataProviderData', 'Provide currency identifiable object form data for update', 'This hook allows to provide currency identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionWebserviceKeyFormDataProviderData', 'Provide webservice key identifiable object form data for update', 'This hook allows to provide webservice key identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionMetaFormDataProviderData', 'Provide meta identifiable object form data for update', 'This hook allows to provide meta identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionCategoryFormDataProviderData', 'Provide category identifiable object form data for update', 'This hook allows to provide category identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionRootCategoryFormDataProviderData', 'Provide root category identifiable object form data for update', 'This hook allows to provide root category identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionContactFormDataProviderData', 'Provide contact identifiable object form data for update', 'This hook allows to provide contact identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionCmsPageCategoryFormDataProviderData', 'Provide cms page category identifiable object form data for update', 'This hook allows to provide cms page category identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionTaxFormDataProviderData', 'Provide tax identifiable object form data for update', 'This hook allows to provide tax identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionManufacturerFormDataProviderData', 'Provide manufacturer identifiable object form data for update', 'This hook allows to provide manufacturer identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionEmployeeFormDataProviderData', 'Provide employee identifiable object form data for update', 'This hook allows to provide employee identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionProfileFormDataProviderData', 'Provide profile identifiable object form data for update', 'This hook allows to provide profile identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionCmsPageFormDataProviderData', 'Provide cms page identifiable object form data for update', 'This hook allows to provide cms page identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionFeatureFormDataProviderData', 'Provide feature identifiable object form data for update', 'This hook allows to provide feature identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionOrderMessageFormDataProviderData', 'Provide order message identifiable object form data for update', 'This hook allows to provide order message identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionCatalogPriceRuleFormDataProviderData', 'Provide catalog price rule identifiable object form data for update', 'This hook allows to provide catalog price rule identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionAttachmentFormDataProviderData', 'Provide attachment identifiable object form data for update', 'This hook allows to provide attachment identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionOrderStateFormDataProviderData', 'Provide order state identifiable object form data for update', 'This hook allows to provide order state identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionOrderReturnStateFormDataProviderData', 'Provide order return state identifiable object form data for update', 'This hook allows to provide order return state identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionCreateProductFormDataProviderData', 'Provide create product identifiable object form data for update', 'This hook allows to provide create product identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionCombinationListFormDataProviderData', 'Provide combination list identifiable object form data for update', 'This hook allows to provide combination list identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionProductImageFormDataProviderData', 'Provide product image identifiable object form data for update', 'This hook allows to provide product image identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionZoneFormDataProviderData', 'Provide zone identifiable object form data for update', 'This hook allows to provide zone identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionSearchEngineFormDataProviderData', 'Provide search engine identifiable object form data for update', 'This hook allows to provide search engine identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionCategoryTreeSelectorFormDataProviderData', 'Provide category tree selector identifiable object form data for update', 'This hook allows to provide category tree selector identifiable object form data which will prefill the form in update/edition page', '1'),
(NULL, 'actionSqlRequestFormDataProviderDefaultData', 'Provide sql request identifiable object default form data for creation', 'This hook allows to provide sql request identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionCustomerFormDataProviderDefaultData', 'Provide customer identifiable object default form data for creation', 'This hook allows to provide customer identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionLanguageFormDataProviderDefaultData', 'Provide language identifiable object default form data for creation', 'This hook allows to provide language identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionCurrencyFormDataProviderDefaultData', 'Provide currency identifiable object default form data for creation', 'This hook allows to provide currency identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionWebserviceKeyFormDataProviderDefaultData', 'Provide webservice key identifiable object default form data for creation', 'This hook allows to provide webservice key identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionMetaFormDataProviderDefaultData', 'Provide meta identifiable object default form data for creation', 'This hook allows to provide meta identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionCategoryFormDataProviderDefaultData', 'Provide category identifiable object default form data for creation', 'This hook allows to provide category identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionRootCategoryFormDataProviderDefaultData', 'Provide root category identifiable object default form data for creation', 'This hook allows to provide root category identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionContactFormDataProviderDefaultData', 'Provide contact identifiable object default form data for creation', 'This hook allows to provide contact identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionCmsPageCategoryFormDataProviderDefaultData', 'Provide cms page category identifiable object default form data for creation', 'This hook allows to provide cms page category identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionTaxFormDataProviderDefaultData', 'Provide tax identifiable object default form data for creation', 'This hook allows to provide tax identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionManufacturerFormDataProviderDefaultData', 'Provide manufacturer identifiable object default form data for creation', 'This hook allows to provide manufacturer identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionEmployeeFormDataProviderDefaultData', 'Provide employee identifiable object default form data for creation', 'This hook allows to provide employee identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionProfileFormDataProviderDefaultData', 'Provide profile identifiable object default form data for creation', 'This hook allows to provide profile identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionCmsPageFormDataProviderDefaultData', 'Provide cms page identifiable object default form data for creation', 'This hook allows to provide cms page identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionFeatureFormDataProviderDefaultData', 'Provide feature identifiable object default form data for creation', 'This hook allows to provide feature identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionOrderMessageFormDataProviderDefaultData', 'Provide order message identifiable object default form data for creation', 'This hook allows to provide order message identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionCatalogPriceRuleFormDataProviderDefaultData', 'Provide catalog price rule identifiable object default form data for creation', 'This hook allows to provide catalog price rule identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionAttachmentFormDataProviderDefaultData', 'Provide attachment identifiable object default form data for creation', 'This hook allows to provide attachment identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionOrderStateFormDataProviderDefaultData', 'Provide order state identifiable object default form data for creation', 'This hook allows to provide order state identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionOrderReturnStateFormDataProviderDefaultData', 'Provide order return state identifiable object default form data for creation', 'This hook allows to provide order return state identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionCreateProductFormDataProviderDefaultData', 'Provide create product identifiable object default form data for creation', 'This hook allows to provide create product identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionCombinationListFormDataProviderDefaultData', 'Provide combination list identifiable object default form data for creation', 'This hook allows to provide combination list identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionProductImageFormDataProviderDefaultData', 'Provide product image identifiable object default form data for creation', 'This hook allows to provide product image identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionZoneFormDataProviderDefaultData', 'Provide zone identifiable object default form data for creation', 'This hook allows to provide zone identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionSearchEngineFormDataProviderDefaultData', 'Provide search engine identifiable object default form data for creation', 'This hook allows to provide search engine identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionCategoryTreeSelectorFormDataProviderDefaultData', 'Provide category tree selector identifiable object default form data for creation', 'This hook allows to provide category tree selector identifiable object form data which will prefill the form in creation page', '1'),
(NULL, 'actionBeforeUpdateCreateProductFormHandler', 'Modify create product identifiable object data before updating it', 'This hook allows to modify create product identifiable object forms data before it was updated', '1'),
(NULL, 'actionBeforeUpdateCombinationListFormHandler', 'Modify combination list identifiable object data before updating it', 'This hook allows to modify combination list identifiable object forms data before it was updated', '1'),
(NULL, 'actionBeforeUpdateProductImageFormHandler', 'Modify product image identifiable object data before updating it', 'This hook allows to modify product image identifiable object forms data before it was updated', '1'),
(NULL, 'actionBeforeUpdateSearchEngineFormHandler', 'Modify search engine identifiable object data before updating it', 'This hook allows to modify search engine identifiable object forms data before it was updated', '1'),
(NULL, 'actionBeforeUpdateCategoryTreeSelectorFormHandler', 'Modify category tree selector identifiable object data before updating it', 'This hook allows to modify category tree selector identifiable object forms data before it was updated', '1'),
(NULL, 'actionAfterUpdateCreateProductFormHandler', 'Modify create product identifiable object data after updating it', 'This hook allows to modify create product identifiable object forms data after it was updated', '1'),
(NULL, 'actionAfterUpdateCombinationListFormHandler', 'Modify combination list identifiable object data after updating it', 'This hook allows to modify combination list identifiable object forms data after it was updated', '1'),
(NULL, 'actionAfterUpdateSearchEngineFormHandler', 'Modify search engine identifiable object data after updating it', 'This hook allows to modify search engine identifiable object forms data after it was updated', '1'),
(NULL, 'actionAfterUpdateCategoryTreeSelectorFormHandler', 'Modify category tree selector identifiable object data after updating it', 'This hook allows to modify category tree selector identifiable object forms data after it was updated', '1'),
(NULL, 'actionBeforeCreateCreateProductFormHandler', 'Modify create product identifiable object data before creating it', 'This hook allows to modify create product identifiable object forms data before it was created', '1'),
(NULL, 'actionBeforeCreateCombinationListFormHandler', 'Modify combination list identifiable object data before creating it', 'This hook allows to modify combination list identifiable object forms data before it was created', '1'),
(NULL, 'actionBeforeCreateProductImageFormHandler', 'Modify product image identifiable object data before creating it', 'This hook allows to modify product image identifiable object forms data before it was created', '1'),
(NULL, 'actionBeforeCreateSearchEngineFormHandler', 'Modify search engine identifiable object data before creating it', 'This hook allows to modify search engine identifiable object forms data before it was created', '1'),
(NULL, 'actionBeforeCreateCategoryTreeSelectorFormHandler', 'Modify category tree selector identifiable object data before creating it', 'This hook allows to modify category tree selector identifiable object forms data before it was created', '1'),
(NULL, 'actionAfterCreateCreateProductFormHandler', 'Modify create product identifiable object data after creating it', 'This hook allows to modify create product identifiable object forms data after it was created', '1'),
(NULL, 'actionAfterCreateCombinationListFormHandler', 'Modify combination list identifiable object data after creating it', 'This hook allows to modify combination list identifiable object forms data after it was created', '1'),
(NULL, 'actionAfterCreateProductImageFormHandler', 'Modify product image identifiable object data after creating it', 'This hook allows to modify product image identifiable object forms data after it was created', '1'),
(NULL, 'actionAfterCreateSearchEngineFormHandler', 'Modify search engine identifiable object data after creating it', 'This hook allows to modify search engine identifiable object forms data after it was created', '1'),
(NULL, 'actionAfterCreateCategoryTreeSelectorFormHandler', 'Modify category tree selector identifiable object data after creating it', 'This hook allows to modify category tree selector identifiable object forms data after it was created', '1'),
(NULL, 'actionFeatureFlagStableForm', 'Modify feature flag stable options form content', 'This hook allows to modify feature flag stable options form FormBuilder', '1'),
(NULL, 'actionFeatureFlagBetaForm', 'Modify feature flag beta options form content', 'This hook allows to modify feature flag beta options form FormBuilder', '1'),
(NULL, 'actionSecurityPageGeneralForm', 'Modify security page general options form content', 'This hook allows to modify security page general options form FormBuilder', '1'),
(NULL, 'actionSecurityPagePasswordPolicyForm', 'Modify security page password policy options form content', 'This hook allows to modify security page password policy options form FormBuilder', '1'),
(NULL, 'actionFeatureFlagStableSave', 'Modify feature flag stable options form saved data', 'This hook allows to modify data of feature flag stable options form after it was saved', '1'),
(NULL, 'actionFeatureFlagBetaSave', 'Modify feature flag beta options form saved data', 'This hook allows to modify data of feature flag beta options form after it was saved', '1'),
(NULL, 'actionSecurityPageGeneralSave', 'Modify security page general options form saved data', 'This hook allows to modify data of security page general options form after it was saved', '1'),
(NULL, 'actionSecurityPagePasswordPolicySave', 'Modify security page password policy options form saved data', 'This hook allows to modify data of security page password policy options form after it was saved', '1'),
(NULL, 'actionCountryGridDefinitionModifier', 'Modify country grid definition', 'This hook allows to alter country grid columns, actions and filters', '1'),
(NULL, 'actionSearchEngineGridDefinitionModifier', 'Modify search engine grid definition', 'This hook allows to alter search engine grid columns, actions and filters', '1'),
(NULL, 'actionProductGridDefinitionModifier', 'Modify product grid definition', 'This hook allows to alter product grid columns, actions and filters', '1'),
(NULL, 'actionProductGridDefinitionModifier', 'Modify product grid definition', 'This hook allows to alter product grid columns, actions and filters', '1'),
(NULL, 'actionSecuritySessionEmployeeGridDefinitionModifier', 'Modify security session employee grid definition', 'This hook allows to alter security session employee grid columns, actions and filters', '1'),
(NULL, 'actionSecuritySessionCustomerGridDefinitionModifier', 'Modify security session customer grid definition', 'This hook allows to alter security session customer grid columns, actions and filters', '1'),
(NULL, 'actionStateGridDefinitionModifier', 'Modify state grid definition', 'This hook allows to alter state grid columns, actions and filters', '1'),
(NULL, 'actionTitleGridDefinitionModifier', 'Modify title grid definition', 'This hook allows to alter title grid columns, actions and filters', '1'),
(NULL, 'actionCountryGridQueryBuilderModifier', 'Modify country grid query builder', 'This hook allows to alter Doctrine query builder for country grid', '1'),
(NULL, 'actionSearchEngineGridQueryBuilderModifier', 'Modify search engine grid query builder', 'This hook allows to alter Doctrine query builder for search engine grid', '1'),
(NULL, 'actionProductGridQueryBuilderModifier', 'Modify product grid query builder', 'This hook allows to alter Doctrine query builder for product grid', '1'),
(NULL, 'actionProductGridQueryBuilderModifier', 'Modify product grid query builder', 'This hook allows to alter Doctrine query builder for product grid', '1'),
(NULL, 'actionSecuritySessionEmployeeGridQueryBuilderModifier', 'Modify security session employee grid query builder', 'This hook allows to alter Doctrine query builder for security session employee grid', '1'),
(NULL, 'actionSecuritySessionCustomerGridQueryBuilderModifier', 'Modify security session customer grid query builder', 'This hook allows to alter Doctrine query builder for security session customer grid', '1'),
(NULL, 'actionStateGridQueryBuilderModifier', 'Modify state grid query builder', 'This hook allows to alter Doctrine query builder for state grid', '1'),
(NULL, 'actionTitleGridQueryBuilderModifier', 'Modify title grid query builder', 'This hook allows to alter Doctrine query builder for title grid', '1'),
(NULL, 'actionCountryGridDataModifier', 'Modify country grid data', 'This hook allows to modify country grid data', '1'),
(NULL, 'actionSearchEngineGridDataModifier', 'Modify search engine grid data', 'This hook allows to modify search engine grid data', '1'),
(NULL, 'actionProductGridDataModifier', 'Modify product grid data', 'This hook allows to modify product grid data', '1'),
(NULL, 'actionProductGridDataModifier', 'Modify product grid data', 'This hook allows to modify product grid data', '1'),
(NULL, 'actionSecuritySessionEmployeeGridDataModifier', 'Modify security session employee grid data', 'This hook allows to modify security session employee grid data', '1'),
(NULL, 'actionSecuritySessionCustomerGridDataModifier', 'Modify security session customer grid data', 'This hook allows to modify security session customer grid data', '1'),
(NULL, 'actionStateGridDataModifier', 'Modify state grid data', 'This hook allows to modify state grid data', '1'),
(NULL, 'actionTitleGridDataModifier', 'Modify title grid data', 'This hook allows to modify title grid data', '1'),
(NULL, 'actionCountryGridFilterFormModifier', 'Modify country grid filters', 'This hook allows to modify filters for country grid', '1'),
(NULL, 'actionSearchEngineGridFilterFormModifier', 'Modify search engine grid filters', 'This hook allows to modify filters for search engine grid', '1'),
(NULL, 'actionProductGridFilterFormModifier', 'Modify product grid filters', 'This hook allows to modify filters for product grid', '1'),
(NULL, 'actionProductGridFilterFormModifier', 'Modify product grid filters', 'This hook allows to modify filters for product grid', '1'),
(NULL, 'actionSecuritySessionEmployeeGridFilterFormModifier', 'Modify security session employee grid filters', 'This hook allows to modify filters for security session employee grid', '1'),
(NULL, 'actionSecuritySessionCustomerGridFilterFormModifier', 'Modify security session customer grid filters', 'This hook allows to modify filters for security session customer grid', '1'),
(NULL, 'actionStateGridFilterFormModifier', 'Modify state grid filters', 'This hook allows to modify filters for state grid', '1'),
(NULL, 'actionTitleGridFilterFormModifier', 'Modify title grid filters', 'This hook allows to modify filters for title grid', '1'),
(NULL, 'actionCountryGridPresenterModifier', 'Modify country grid template data', 'This hook allows to modify data which is about to be used in template for country grid', '1'),
(NULL, 'actionSearchEngineGridPresenterModifier', 'Modify search engine grid template data', 'This hook allows to modify data which is about to be used in template for search engine grid', '1'),
(NULL, 'actionProductGridPresenterModifier', 'Modify product grid template data', 'This hook allows to modify data which is about to be used in template for product grid', '1'),
(NULL, 'actionProductGridPresenterModifier', 'Modify product grid template data', 'This hook allows to modify data which is about to be used in template for product grid', '1'),
(NULL, 'actionSecuritySessionEmployeeGridPresenterModifier', 'Modify security session employee grid template data', 'This hook allows to modify data which is about to be used in template for security session employee grid', '1'),
(NULL, 'actionSecuritySessionCustomerGridPresenterModifier', 'Modify security session customer grid template data', 'This hook allows to modify data which is about to be used in template for security session customer grid', '1'),
(NULL, 'actionStateGridPresenterModifier', 'Modify state grid template data', 'This hook allows to modify data which is about to be used in template for state grid', '1'),
(NULL, 'actionTitleGridPresenterModifier', 'Modify title grid template data', 'This hook allows to modify data which is about to be used in template for title grid', '1')
ON DUPLICATE KEY UPDATE `title` = VALUES(`title`), `description` = VALUES(`description`);
ALTER TABLE `PREFIX_employee_session` ADD `date_upd` DATETIME NOT NULL AFTER `token`;
ALTER TABLE `PREFIX_employee_session` ADD `date_add` DATETIME NOT NULL AFTER `date_upd`;
UPDATE `PREFIX_employee_session` SET `date_add` = NOW(), `date_upd` = NOW();
ALTER TABLE `PREFIX_customer_session` ADD `date_upd` DATETIME NOT NULL AFTER `token`;
ALTER TABLE `PREFIX_customer_session` ADD `date_add` DATETIME NOT NULL AFTER `date_upd`;
UPDATE `PREFIX_customer_session` SET `date_add` = NOW(), `date_upd` = NOW();
ALTER TABLE `PREFIX_carrier` DROP COLUMN `id_tax_rules_group`;
ALTER TABLE `PREFIX_category_lang` ADD `additional_description` text AFTER `description`;
ALTER TABLE `PREFIX_product` MODIFY COLUMN `redirect_type` ENUM(
'404', '410', '301-product', '302-product', '301-category', '302-category'
) NOT NULL DEFAULT '404';
ALTER TABLE `PREFIX_product_shop` MODIFY COLUMN `redirect_type` ENUM(
'', '404', '410', '301-product', '302-product', '301-category', '302-category'
) NOT NULL DEFAULT '';
/* PHP:ps_800_add_security_tab(); */;
ALTER TABLE `PREFIX_order_detail` MODIFY COLUMN `product_name` TEXT NOT NULL;
ALTER TABLE `PREFIX_webservice_permission` MODIFY COLUMN `method` ENUM(
'GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD'
) NOT NULL;
ALTER TABLE `PREFIX_product` ADD `unit_price` decimal(20, 6) NOT NULL DEFAULT '0.000000' AFTER `unity`;
ALTER TABLE `PREFIX_product_shop` ADD `unit_price` decimal(20, 6) NOT NULL DEFAULT '0.000000' AFTER `unity`;
UPDATE `PREFIX_product` SET `unit_price` = IF (`unit_price_ratio` != 0, `price` / `unit_price_ratio`, 0);
UPDATE `PREFIX_product_shop` SET `unit_price` = IF (`unit_price_ratio` != 0, `price` / `unit_price_ratio`, 0);
ALTER TABLE `PREFIX_feature_flag` ADD `stability` VARCHAR(64) DEFAULT 'beta' NOT NULL;
UPDATE `PREFIX_feature_flag` SET `state` = '0', `stability` = 'stable', `label_wording` = 'New product page - Single store', `description_wording` = 'This page benefits from increased performance and includes new features such as a new combination management system.' WHERE `name` = 'product_page_V2';
INSERT INTO `PREFIX_feature_flag` (`name`, `state`, `label_wording`, `label_domain`, `description_wording`, `description_domain`, `stability`)
VALUES ('product_page_v2_multi_shop', '0', 'New product page - Multi store', 'Admin.Advparameters.Feature', 'Access the new product page, even in a multistore context. This is a work in progress and some features are not available.', 'Admin.Advparameters.Help', 'beta');
UPDATE `PREFIX_tab` SET wording = 'New & Experimental Features' WHERE `class_name` = 'AdminFeatureFlag';
/* PHP:ps_update_tab_lang('Admin.Navigation.Menu', 'AdminFeatureFlag'); */;
UPDATE `PREFIX_quick_access` SET `link` = 'index.php/sell/orders' WHERE `link` = 'index.php?controller=AdminOrders';
/* Insert new password policy configuration values */
INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES
('PS_SECURITY_PASSWORD_POLICY_MAXIMUM_LENGTH', '72', NOW(), NOW()),
('PS_SECURITY_PASSWORD_POLICY_MINIMUM_LENGTH', '8', NOW(), NOW()),
('PS_SECURITY_PASSWORD_POLICY_MINIMUM_SCORE', '3', NOW(), NOW())
;
UPDATE `PREFIX_carrier` SET `name` = 'Click and collect' WHERE `name` = '0';
/* PHP:install_ps_distributionapiclient(); */;
/* Remove deprecated columns */
/* PHP:drop_column_if_exists('product_attribute', 'location'); */;
/* PHP:drop_column_if_exists('product_attribute', 'quantity'); */;
/* PHP:drop_column_if_exists('orders', 'shipping_number'); */;
ALTER TABLE `PREFIX_tab` DROP hide_host_mode;
ALTER TABLE `PREFIX_feature_flag` CHANGE label_wording label_wording VARCHAR(512) DEFAULT '' NOT NULL;
ALTER TABLE `PREFIX_feature_flag` CHANGE description_wording description_wording VARCHAR(512) DEFAULT '' NOT NULL;

View File

@@ -0,0 +1,9 @@
SET SESSION sql_mode='';
SET NAMES 'utf8mb4';
/* Remove welcome module */
DELETE FROM `PREFIX_tab_lang` WHERE id_tab IN (SELECT id_tab FROM `PREFIX_tab` WHERE class_name = 'AdminWelcome');
DELETE FROM `PREFIX_tab` WHERE class_name = 'AdminWelcome';
DELETE FROM `PREFIX_module_shop` WHERE id_module = (SELECT id_module FROM `PREFIX_module` WHERE `name` = 'welcome');
DELETE FROM `PREFIX_hook_module` WHERE id_module = (SELECT id_module FROM `PREFIX_module` WHERE `name` = 'welcome');
DELETE FROM `PREFIX_module` WHERE `name` = 'welcome';

View File

@@ -0,0 +1,107 @@
SET SESSION sql_mode='';
SET NAMES 'utf8mb4';
UPDATE `PREFIX_configuration` SET `value` = 'US/Pacific' WHERE `name` = 'PS_TIMEZONE' AND `value` = 'US/Pacific-New' LIMIT 1;
DELETE FROM `PREFIX_timezone` WHERE `name` = 'US/Pacific-New';
INSERT INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `position`) VALUES
(NULL, 'actionModifyFrontendSitemap', 'Add or remove links on sitemap page', 'This hook allows to modify links on sitemap page of your shop. Useful to improve indexation of your modules.', '1'),
(NULL, 'displayAddressSelectorBottom', 'After address selection on checkout page', 'This hook is displayed after the address selection in checkout step.', '1'),
(NULL, 'actionGenerateDocumentReference', 'Modify document reference', 'This hook allows modules to return custom document references', '1'),
(NULL, 'actionLoggerLogMessage', 'Allows to make extra action while a log is triggered', 'This hook allows to make an extra action while an exception is thrown and the logger logs it', '1'),
(NULL, 'actionProductPriceCalculation', 'Product Price Calculation', 'This hook is called into the priceCalculation method to be able to override the price calculation', '1')
ON DUPLICATE KEY UPDATE `title` = VALUES(`title`), `description` = VALUES(`description`);
INSERT INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `position`) VALUES
(NULL, 'actionAdminMenuTabsModifier', 'Modify back office menu', 'This hook allows modifying back office menu tabs', '1')
ON DUPLICATE KEY UPDATE `title` = VALUES(`title`), `description` = VALUES(`description`);
/* Default configuration for backorder, in order to keep behavior */
INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES
('PS_ENABLE_BACKORDER_STATUS', '1', NOW(), NOW());
/* Keep sending e-mails with prefixed subject to avoid behaviour change */
INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES
('PS_MAIL_SUBJECT_PREFIX', '1', NOW(), NOW());
/* Add new product_attribute_lang table and fill it with data */
CREATE TABLE `PREFIX_product_attribute_lang` (
`id_product_attribute` int(10) unsigned NOT NULL,
`id_lang` int(10) unsigned NOT NULL,
`available_now` varchar(255) DEFAULT NULL,
`available_later` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id_product_attribute`, `id_lang`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8mb4;
INSERT INTO `PREFIX_product_attribute_lang`
(id_product_attribute, id_lang, available_now, available_later)
SELECT pa.id_product_attribute, l.id_lang, '', ''
FROM `PREFIX_product_attribute` pa CROSS JOIN `PREFIX_lang` l;
/* Add default redirect configuration */
INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES
('PS_PRODUCT_REDIRECTION_DEFAULT', '404', NOW(), NOW()),
('PS_MAINTENANCE_ALLOW_ADMINS', 1, NOW(), NOW()),
('PS_AVIF_QUALITY', '90', NOW(), NOW()),
('PS_IMAGE_FORMAT', 'jpg', NOW(), NOW())
;
/* Update ENUM values in both tables*/
ALTER TABLE `PREFIX_product` MODIFY COLUMN `redirect_type` ENUM(
'','404','410','301-product','302-product','301-category','302-category','200-displayed','404-displayed','410-displayed','default'
) NOT NULL DEFAULT 'default';
ALTER TABLE `PREFIX_product_shop` MODIFY COLUMN `redirect_type` ENUM(
'','404','410','301-product','302-product','301-category','302-category','200-displayed','404-displayed','410-displayed','default'
) NOT NULL DEFAULT 'default';
/* and change all '404' to 'default' */
UPDATE `PREFIX_product` SET `redirect_type` = 'default' WHERE `redirect_type` = '404' OR `redirect_type` = '' OR `redirect_type` IS NULL;
UPDATE `PREFIX_product_shop` SET `redirect_type` = 'default' WHERE `redirect_type` = '404' OR `redirect_type` = '' OR `redirect_type` IS NULL;
/* Update feature flags */
/* PHP:ps_810_update_product_page_feature_flags(); */;
/* add new feature flag from 8.0.x to 8.1.0 */
INSERT INTO `PREFIX_feature_flag` (`name`, `label_wording`, `label_domain`, `description_wording`, `description_domain`, `state`, `stability`)
VALUES
('attribute_group', 'Attribute group', 'Admin.Advparameters.Feature', 'Enable / Disable migrated attribute group page.', 'Admin.Advparameters.Help', 0, 'beta'),
('authorization_server', 'Authorization server', 'Admin.Advparameters.Feature', 'Enable or disable the authorization server page.', 'Admin.Advparameters.Help', 0, 'beta'),
('cart_rule', 'Cart rules', 'Admin.Advparameters.Feature', 'Enable / Disable the migrated cart rules page.', 'Admin.Advparameters.Help', 0, 'beta'),
('catalog_price_rule', 'Catalog price rules', 'Admin.Advparameters.Feature', 'Enable / Disable the migrated catalog price rules page.', 'Admin.Advparameters.Help', 0, 'beta'),
('multiple_image_format', 'Multiple image formats', 'Admin.Advparameters.Feature', 'Enable / Disable having more than one image format (jpg, webp, avif, png, etc.)', 'Admin.Advparameters.Help', 0, 'stable'),
('country', 'Countries', 'Admin.Advparameters.Feature', 'Enable / Disable the migrated countries page.', 'Admin.Advparameters.Help', 0, 'beta'),
('state', 'States', 'Admin.Advparameters.Feature', 'Enable / Disable the migrated states page.', 'Admin.Advparameters.Help', 0, 'beta'),
('carrier', 'Carriers', 'Admin.Advparameters.Feature', 'Enable / Disable the migrated carriers page.', 'Admin.Advparameters.Help', 0, 'beta'),
('title', 'Titles', 'Admin.Advparameters.Feature', 'Enable / Disable the migrated titles page.', 'Admin.Advparameters.Help', 0, 'beta'),
('permission', 'Permissions', 'Admin.Advparameters.Feature', 'Enable / Disable the migrated permissions page.', 'Admin.Advparameters.Help', 0, 'beta'),
('tax_rules_group', 'Tax rule groups', 'Admin.Advparameters.Feature', 'Enable / Disable the migrated tax rules page.', 'Admin.Advparameters.Help', 0, 'beta'),
('customer_threads', 'Customer threads', 'Admin.Advparameters.Feature', 'Enable / Disable the migrated customer threads page.', 'Admin.Advparameters.Help', 0, 'beta'),
('order_state', 'Order states', 'Admin.Advparameters.Feature', 'Enable / Disable the migrated order states page.', 'Admin.Advparameters.Help', 0, 'beta');
ALTER TABLE `PREFIX_stock_mvt` CHANGE `employee_lastname` `employee_lastname` VARCHAR(255) DEFAULT NULL, CHANGE `employee_firstname` `employee_firstname` VARCHAR(255) DEFAULT NULL;
ALTER TABLE `PREFIX_stock_mvt` CHANGE `physical_quantity` `physical_quantity` INT(10) UNSIGNED NOT NULL;
/* PHP:add_hook('actionAdminBreadcrumbModifier', 'Modify back office breadcrumb', 'This hook allows modifying back office breadcrumb'); */;
ALTER TABLE `PREFIX_order_payment` ADD `id_employee` INT NULL AFTER `date_add`;
CREATE TABLE `PREFIX_authorized_application`
(
id_authorized_application INT UNSIGNED AUTO_INCREMENT NOT NULL,
name VARCHAR(255) NOT NULL,
description LONGTEXT NOT NULL,
UNIQUE INDEX UNIQ_475B9BA55E237E06 (name),
PRIMARY KEY (id_authorized_application)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE `PREFIX_api_access`
(
id_api_access INT UNSIGNED AUTO_INCREMENT NOT NULL,
id_authorized_application INT UNSIGNED NOT NULL,
client_id VARCHAR(255) NOT NULL,
client_secret VARCHAR(255) NOT NULL,
active TINYINT(1) NOT NULL,
scopes LONGTEXT NOT NULL COMMENT '(DC2Type:array)',
INDEX IDX_6E064442D8BFF738 (id_authorized_application),
PRIMARY KEY (id_api_access)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

View File

@@ -0,0 +1,7 @@
SET SESSION sql_mode='';
SET NAMES 'utf8mb4';
/* We forgot to update redirect_type in 8.1.0. This updates it, if it's not done already */
/* PHP:ps_811_update_redirect_type(); */;
ALTER TABLE `PREFIX_authorized_application` CHANGE `name` `name` VARCHAR(50) NOT NULL;

View File

@@ -0,0 +1,16 @@
SET SESSION sql_mode='';
SET NAMES 'utf8mb4';
/*
Security section tabs were correctly added (ps_800_add_security_tab.php) for people coming from 1.7.8,
but had missing wordings on new 8.0.0-8.1.1 installs.
We fixed it for people installing fresh 8.1.2, but we also need to fix it for people that started on 8.0.0-8.1.1 versions.
*/
UPDATE `PREFIX_tab` SET wording_domain = 'Admin.Navigation.Menu', wording = 'Security' WHERE class_name = 'AdminParentSecurity';
UPDATE `PREFIX_tab` SET wording_domain = 'Admin.Navigation.Menu', wording = 'Employee Sessions' WHERE class_name = 'AdminSecuritySessionEmployee';
UPDATE `PREFIX_tab` SET wording_domain = 'Admin.Navigation.Menu', wording = 'Customer Sessions' WHERE class_name = 'AdminSecuritySessionCustomer';
INSERT INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `position`) VALUES
(NULL, 'actionLanguageLinkParameters', 'Add parameters to language link', 'Allows modules to provide proper parameters for links in other languages.', '1'),
(NULL, 'actionAfterLoadRoutes', 'Triggers after loading routes', 'Allow modules to modify routes in any way or add their own multilanguage routes.', '1')
ON DUPLICATE KEY UPDATE `title` = VALUES(`title`), `description` = VALUES(`description`);

View File

@@ -0,0 +1,31 @@
SET SESSION sql_mode='';
SET NAMES 'utf8mb4';
/* Change the ape field lenght to match all code formats */
ALTER TABLE `PREFIX_customer` CHANGE `ape` `ape` varchar(6) DEFAULT NULL;
/* We fixed some issues in older upgrade scripts. These are here to fix stores that have been upgraded in the meantime. */
/* PHP:drop_column_if_exists('product_attribute', 'location'); */;
/* PHP:drop_column_if_exists('product_attribute', 'quantity'); */;
ALTER TABLE `PREFIX_smarty_lazy_cache` CHANGE `cache_id` `cache_id` VARCHAR(191) NOT NULL DEFAULT '';
ALTER TABLE `PREFIX_log` CHANGE `id_shop` `id_shop` INT(10) unsigned DEFAULT NULL;
ALTER TABLE `PREFIX_log` CHANGE `id_shop_group` `id_shop_group` INT(10) unsigned DEFAULT NULL;
ALTER TABLE `PREFIX_log` CHANGE `id_lang` `id_lang` INT(10) unsigned DEFAULT NULL;
ALTER TABLE `PREFIX_product_attribute_lang` CHANGE `available_now` `available_now` VARCHAR(255) DEFAULT NULL;
ALTER TABLE `PREFIX_product_attribute_lang` CHANGE `available_later` `available_later` VARCHAR(255) DEFAULT NULL;
ALTER TABLE `PREFIX_order_cart_rule` CHANGE `deleted` `deleted` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `PREFIX_product_group_reduction_cache` CHANGE `reduction` `reduction` DECIMAL(5, 4) NOT NULL;
ALTER TABLE `PREFIX_stock_mvt` CHANGE `physical_quantity` `physical_quantity` INT(10) UNSIGNED NOT NULL;
ALTER TABLE `PREFIX_group_reduction` CHANGE `reduction` `reduction` DECIMAL(5, 4) NOT NULL;
ALTER TABLE `PREFIX_order_payment` CHANGE `amount` `amount` DECIMAL(20, 6) NOT NULL;
/* Minimal_quantity should be 1 at least, not 0 */
UPDATE `PREFIX_product` SET `minimal_quantity` = 1 WHERE `minimal_quantity` = 0;
UPDATE `PREFIX_product_shop` SET `minimal_quantity` = 1 WHERE `minimal_quantity` = 0;
UPDATE `PREFIX_product_attribute` SET `minimal_quantity` = 1 WHERE `minimal_quantity` = 0;
UPDATE `PREFIX_product_attribute_shop` SET `minimal_quantity` = 1 WHERE `minimal_quantity` = 0;
/* Normalize some older database records that should not be NULL, prevents errors in new code. */
/* Mainly concerns people coming all the way from 1.6, but will fix many inconsitencies. */
/* PHP:update_null_values(); */;

View File

@@ -0,0 +1,11 @@
SET SESSION sql_mode='';
SET NAMES 'utf8mb4';
/* Adds missing hook entries that have been added to 8.1.5 installer. */
INSERT INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `position`) VALUES
(NULL, 'actionSubmitAccountBefore', 'Triggers before customer registers', 'Triggers after submitting registration form, before the registration process itself. Allows to modify result of this action.', '1'),
(NULL, 'actionAuthenticationBefore', 'Triggers before customer logs in', 'Triggers after successful validation of login form, before the login process itself.', '1'),
(NULL, 'actionCartUpdateQuantityBefore', 'Triggers before product is added to cart', 'Allows responding to add to cart events.', '1'),
(NULL, 'actionAjaxDieBefore', 'Triggers when returning AJAX response', 'Allows to modify AJAX response of controllers using ajaxRender method.', '1')
ON DUPLICATE KEY UPDATE `title` = VALUES(`title`), `description` = VALUES(`description`);

View File

@@ -0,0 +1,29 @@
/* script intended for catching up with requests forgotten since 1.7 */
/* 1.7.1.0 */
ALTER TABLE `PREFIX_product` CHANGE `id_type_redirected` `id_type_redirected` INT(10) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `PREFIX_product_shop` CHANGE `id_type_redirected` `id_type_redirected` INT(10) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `PREFIX_tab` CHANGE `active` `active` TINYINT(1) NOT NULL;
ALTER TABLE `PREFIX_tab` CHANGE `icon` `icon` VARCHAR(32) DEFAULT NULL;
/* PHP:add_missing_unique_key_from_authorization_role(); */;
/* 1.7.2.0 */
ALTER TABLE `PREFIX_stock_mvt` CHANGE `sign` `sign` SMALLINT(6) NOT NULL DEFAULT '1';
ALTER TABLE `PREFIX_carrier_lang` CHANGE `delay` `delay` VARCHAR(512) DEFAULT NULL;
/* 1.7.5.0 */
ALTER TABLE `PREFIX_manufacturer_lang` CHANGE `meta_title` `meta_title` VARCHAR(255) DEFAULT NULL;
UPDATE `PREFIX_stock` SET `reference` = '' WHERE `reference` IS NULL;
ALTER TABLE `PREFIX_stock` CHANGE `reference` `reference` VARCHAR(64) NOT NULL;
/* 1.7.6.0 */
ALTER TABLE `PREFIX_currency` CHANGE `numeric_iso_code` `numeric_iso_code` VARCHAR(3) DEFAULT NULL AFTER `iso_code`;
/* 1.7.8.0 */
DROP TABLE IF EXISTS `PREFIX_order_slip_detail_tax`;
/* 8.0.0 */
DROP TABLE IF EXISTS `PREFIX_attribute_impact`;
/* PHP:drop_column_if_exists('orders', 'shipping_number'); */;

View File

@@ -0,0 +1,41 @@
SET SESSION sql_mode='';
SET NAMES 'utf8mb4';
/* Normalize database text field sizes on all installs - see https://github.com/PrestaShop/PrestaShop/pull/35749 */
ALTER TABLE `PREFIX_address` CHANGE `other` `other` MEDIUMTEXT;
ALTER TABLE `PREFIX_attachment_lang` CHANGE `description` `description` MEDIUMTEXT;
ALTER TABLE `PREFIX_cart_rule` CHANGE `description` `description` MEDIUMTEXT;
ALTER TABLE `PREFIX_cart` CHANGE `delivery_option` `delivery_option` MEDIUMTEXT NOT NULL;
ALTER TABLE `PREFIX_cart` CHANGE `gift_message` `gift_message` MEDIUMTEXT;
ALTER TABLE `PREFIX_cart` CHANGE `checkout_session_data` `checkout_session_data` MEDIUMTEXT NULL;
ALTER TABLE `PREFIX_category_lang` CHANGE `additional_description` `additional_description` MEDIUMTEXT;
ALTER TABLE `PREFIX_category_lang` CHANGE `description` `description` MEDIUMTEXT;
ALTER TABLE `PREFIX_cms_category_lang` CHANGE `description` `description` MEDIUMTEXT;
ALTER TABLE `PREFIX_cms_lang` CHANGE `content` `content` longtext;
ALTER TABLE `PREFIX_configuration_kpi_lang` CHANGE `value` `value` MEDIUMTEXT;
ALTER TABLE `PREFIX_configuration_kpi` CHANGE `value` `value` MEDIUMTEXT;
ALTER TABLE `PREFIX_configuration_lang` CHANGE `value` `value` MEDIUMTEXT;
ALTER TABLE `PREFIX_configuration` CHANGE `value` `value` MEDIUMTEXT;
ALTER TABLE `PREFIX_contact_lang` CHANGE `description` `description` MEDIUMTEXT;
ALTER TABLE `PREFIX_customer_message` CHANGE `message` `message` MEDIUMTEXT NOT NULL;
ALTER TABLE `PREFIX_customer` CHANGE `note` `note` MEDIUMTEXT;
ALTER TABLE `PREFIX_hook` CHANGE `description` `description` MEDIUMTEXT;
ALTER TABLE `PREFIX_import_match` CHANGE `match` `match` MEDIUMTEXT NOT NULL;
ALTER TABLE `PREFIX_log` CHANGE `message` `message` MEDIUMTEXT NOT NULL;
ALTER TABLE `PREFIX_manufacturer_lang` CHANGE `description` `description` MEDIUMTEXT;
ALTER TABLE `PREFIX_manufacturer_lang` CHANGE `short_description` `short_description` MEDIUMTEXT;
ALTER TABLE `PREFIX_message` CHANGE `message` `message` MEDIUMTEXT NOT NULL;
ALTER TABLE `PREFIX_order_detail` CHANGE `product_name` `product_name` MEDIUMTEXT NOT NULL;
ALTER TABLE `PREFIX_order_invoice` CHANGE `note` `note` MEDIUMTEXT;
ALTER TABLE `PREFIX_order_invoice` CHANGE `shop_address` `shop_address` MEDIUMTEXT DEFAULT NULL;
ALTER TABLE `PREFIX_order_message_lang` CHANGE `message` `message` MEDIUMTEXT NOT NULL;
ALTER TABLE `PREFIX_order_return` CHANGE `question` `question` MEDIUMTEXT NOT NULL;
ALTER TABLE `PREFIX_orders` CHANGE `gift_message` `gift_message` MEDIUMTEXT;
ALTER TABLE `PREFIX_orders` CHANGE `note` `note` MEDIUMTEXT;
ALTER TABLE `PREFIX_product_lang` CHANGE `description_short` `description_short` MEDIUMTEXT;
ALTER TABLE `PREFIX_product_lang` CHANGE `description` `description` MEDIUMTEXT;
ALTER TABLE `PREFIX_request_sql` CHANGE `sql` `sql` MEDIUMTEXT NOT NULL;
ALTER TABLE `PREFIX_store_lang` CHANGE `hours` `hours` MEDIUMTEXT;
ALTER TABLE `PREFIX_store_lang` CHANGE `note` `note` MEDIUMTEXT;
ALTER TABLE `PREFIX_supplier_lang` CHANGE `description` `description` MEDIUMTEXT;
ALTER TABLE `PREFIX_webservice_account` CHANGE `description` `description` MEDIUMTEXT NULL;

View File

@@ -0,0 +1,199 @@
SET SESSION sql_mode='';
SET NAMES 'utf8mb4';
/* Enable controlling of default language URL prefix - https://github.com/PrestaShop/PrestaShop/pull/37236 */
/* Add a file separator input to the sql manager settings - https://github.com/PrestaShop/PrestaShop/pull/35843 */
/* Allow configuring maximum word difference - https://github.com/PrestaShop/PrestaShop/pull/37261 */
INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES
('PS_DEBUG_COOKIE_NAME', '', NOW(), NOW()),
('PS_DEBUG_COOKIE_VALUE', '', NOW(), NOW()),
('PS_PRODUCT_BREADCRUMB_CATEGORY', 'default', NOW(), NOW()),
('PS_SEARCH_FUZZY_MAX_DIFFERENCE', 5, NOW(), NOW()),
('PS_DEFAULT_LANGUAGE_URL_PREFIX', 1, NOW(), NOW())
;
/* Remove meta keywords - https://github.com/PrestaShop/PrestaShop/pull/36873 */
/* PHP:drop_column_if_exists('category_lang', 'meta_keywords'); */;
/* PHP:drop_column_if_exists('cms_lang', 'meta_keywords'); */;
/* PHP:drop_column_if_exists('cms_category_lang', 'meta_keywords'); */;
/* PHP:drop_column_if_exists('manufacturer_lang', 'meta_keywords'); */;
/* PHP:drop_column_if_exists('meta_lang', 'keywords'); */;
/* PHP:drop_column_if_exists('product_lang', 'meta_keywords'); */;
/* PHP:drop_column_if_exists('supplier_lang', 'meta_keywords'); */;
INSERT INTO `PREFIX_hook` (`id_hook`, `name`, `title`, `description`, `position`) VALUES
(NULL, 'actionUpdateCartAddress', 'Triggers after changing address on the cart', 'This hook is called after address is changed on the cart', '1'),
(NULL, 'actionPresentCategory', 'Category Presenter', 'This hook is called before a category is presented', '1'),
(NULL, 'actionPresentStore', 'Store Presenter', 'This hook is called before a store is presented', '1'),
(NULL, 'actionPresentSupplier', 'Supplier Presenter', 'This hook is called before a supplier is presented', '1'),
(NULL, 'actionPresentManufacturer', 'Manufacturer Presenter', 'This hook is called before a manufacturer is presented', '1'),
(NULL, 'actionValidateCartRule', 'Alter cart rule validation process', 'Allow modules to implement their own rules to validate a cart rule.', '1'),
(NULL, 'actionCartGetPackageShippingCost', 'After getting package shipping cost value', 'This hook is called in order to allow to modify package shipping cost', '1')
ON DUPLICATE KEY UPDATE `title` = VALUES(`title`), `description` = VALUES(`description`);
/* Add feature flag types */
ALTER TABLE `PREFIX_feature_flag` ADD `type` VARCHAR(64) DEFAULT 'env,dotenv,db' NOT NULL AFTER `name`;
UPDATE `PREFIX_feature_flag` SET `state` = 1 WHERE `name` = 'authorization_server';
UPDATE `PREFIX_tab` SET `active` = 1 WHERE `class_name` = 'AdminAuthorizationServer';
/* Insert new feature flags introduced by v9 */
INSERT INTO `PREFIX_feature_flag` (`name`, `type`, `label_wording`, `label_domain`, `description_wording`, `description_domain`, `state`, `stability`) VALUES
('authorization_server_multistore', 'env,dotenv,db', 'Authorization server - Multistore', 'Admin.Advparameters.Feature', 'Enable or disable the Authorization server when multistore is enabled.', 'Admin.Advparameters.Help', 0, 'beta'),
('symfony_layout', 'env,query,dotenv,db', 'Symfony layout', 'Admin.Advparameters.Feature', 'Enable / Disable symfony layout (in opposition to legacy layout).', 'Admin.Advparameters.Help', 1, 'beta'),
('front_container_v2', 'env,dotenv,db', 'New front container', 'Admin.Advparameters.Feature', 'Enable / Disable the new front container.', 'Admin.Advparameters.Help', 0, 'beta'),
('customer_group', 'env,dotenv,db', 'Customer group', 'Admin.Advparameters.Feature', 'Enable / Disable the customer group page.', 'Admin.Advparameters.Help', 0, 'beta'),
('store', 'env,dotenv,db', 'Store', 'Admin.Advparameters.Feature', 'Enable / Disable the store page.', 'Admin.Advparameters.Help', 0, 'beta'),
('search_conf', 'env,dotenv,db', 'Search configuration', 'Admin.Advparameters.Feature', 'Enable / Disable the search configuration page.', 'Admin.Advparameters.Help', 0, 'beta'),
('merchandise_return', 'env,dotenv,db', 'Merchandise return', 'Admin.Advparameters.Feature', 'Enable / Disable the merchandise return page.', 'Admin.Advparameters.Help', 0, 'beta');
/* Remove old feature flags from 8.1.x */
DELETE FROM `PREFIX_feature_flag` WHERE `name` IN ('product_page_v2', 'title', 'order_state', 'multiple_image_format');
/* Category redirect */
ALTER TABLE `PREFIX_category` ADD `redirect_type` ENUM(
'404', '410', '301', '302'
) NOT NULL DEFAULT '301';
ALTER TABLE `PREFIX_category` ADD `id_type_redirected`int(10) unsigned NOT NULL DEFAULT '0';
UPDATE `PREFIX_category` SET `redirect_type` = '404' WHERE `is_root_category` = 1;
/* Increase size of customized data - https://github.com/PrestaShop/PrestaShop/pull/31109 */
ALTER TABLE `PREFIX_customized_data` MODIFY `value` varchar(1024) NOT NULL;
/* Request optimization for back office KPI and others */
ALTER TABLE `PREFIX_orders` ADD INDEX `invoice_date` (`invoice_date`);
/* Remove obsolete enable/disable module on mobile feature */
/* https://github.com/PrestaShop/PrestaShop/pull/31151 */
DELETE FROM `PREFIX_configuration` WHERE `name` = 'PS_ALLOW_MOBILE_DEVICE';
DELETE FROM `PREFIX_hook` WHERE `name` = 'actionBeforeEnableMobileModule';
DELETE FROM `PREFIX_hook` WHERE `name` = 'actionBeforeDisableMobileModule';
DELETE FROM `PREFIX_hook_module` WHERE `id_hook` NOT IN (SELECT id_hook FROM `PREFIX_hook`);
DELETE FROM `PREFIX_hook_module_exceptions` WHERE `id_hook` NOT IN (SELECT id_hook FROM `PREFIX_hook`);
UPDATE `PREFIX_module_shop` SET `enable_device` = '7';
/* Allow cover configuration */
/* https://github.com/PrestaShop/PrestaShop/pull/33363 */
INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_USE_COMBINATION_IMAGE_IN_LISTING', '0', NOW(), NOW());
/* Remove purpose of store */
/* https://github.com/PrestaShop/PrestaShop/pull/33232 */
DELETE FROM `PREFIX_configuration` WHERE `name` = 'PS_SHOP_ACTIVITY';
/* Remove advanced stock management remains */
/* https://github.com/PrestaShop/PrestaShop/pull/33158 */
/* Remove configuration */
DELETE FROM `PREFIX_configuration` WHERE `name` = 'PS_STOCK_MVT_REASON_DEFAULT';
DELETE FROM `PREFIX_configuration` WHERE `name` = 'PS_STOCK_MVT_INC_REASON_DEFAULT';
DELETE FROM `PREFIX_configuration` WHERE `name` = 'PS_STOCK_MVT_DEC_REASON_DEFAULT';
DELETE FROM `PREFIX_configuration` WHERE `name` = 'PS_ADVANCED_STOCK_MANAGEMENT';
DELETE FROM `PREFIX_configuration` WHERE `name` = 'PS_STOCK_MVT_TRANSFER_TO';
DELETE FROM `PREFIX_configuration` WHERE `name` = 'PS_STOCK_MVT_TRANSFER_FROM';
DELETE FROM `PREFIX_configuration` WHERE `name` = 'PS_STOCK_MVT_SUPPLY_ORDER';
DELETE FROM `PREFIX_configuration` WHERE `name` = 'PS_SSL_ENABLED_EVERYWHERE';
/* Remove authorization roles and all assignments to profiles */
DELETE FROM `PREFIX_authorization_role` WHERE `slug` = 'ROLE_MOD_TAB_ADMINPARENTSTOCKMANAGEMENT_CREATE';
DELETE FROM `PREFIX_authorization_role` WHERE `slug` = 'ROLE_MOD_TAB_ADMINPARENTSTOCKMANAGEMENT_READ';
DELETE FROM `PREFIX_authorization_role` WHERE `slug` = 'ROLE_MOD_TAB_ADMINPARENTSTOCKMANAGEMENT_UPDATE';
DELETE FROM `PREFIX_authorization_role` WHERE `slug` = 'ROLE_MOD_TAB_ADMINPARENTSTOCKMANAGEMENT_DELETE';
DELETE FROM `PREFIX_authorization_role` WHERE `slug` = 'ROLE_MOD_TAB_ADMINSTOCK_CREATE';
DELETE FROM `PREFIX_authorization_role` WHERE `slug` = 'ROLE_MOD_TAB_ADMINSTOCK_READ';
DELETE FROM `PREFIX_authorization_role` WHERE `slug` = 'ROLE_MOD_TAB_ADMINSTOCK_UPDATE';
DELETE FROM `PREFIX_authorization_role` WHERE `slug` = 'ROLE_MOD_TAB_ADMINSTOCK_DELETE';
DELETE FROM `PREFIX_authorization_role` WHERE `slug` = 'ROLE_MOD_TAB_ADMINWAREHOUSES_CREATE';
DELETE FROM `PREFIX_authorization_role` WHERE `slug` = 'ROLE_MOD_TAB_ADMINWAREHOUSES_READ';
DELETE FROM `PREFIX_authorization_role` WHERE `slug` = 'ROLE_MOD_TAB_ADMINWAREHOUSES_UPDATE';
DELETE FROM `PREFIX_authorization_role` WHERE `slug` = 'ROLE_MOD_TAB_ADMINWAREHOUSES_DELETE';
DELETE FROM `PREFIX_access` WHERE `id_authorization_role` NOT IN (SELECT id_authorization_role FROM `PREFIX_authorization_role`);
/* Remove all menu tabs related to deleted controllers */
DELETE FROM `PREFIX_tab` WHERE `class_name` = 'AdminStock';
DELETE FROM `PREFIX_tab` WHERE `class_name` = 'AdminWarehouses';
DELETE FROM `PREFIX_tab` WHERE `class_name` = 'AdminParentStockManagement';
DELETE FROM `PREFIX_tab` WHERE `class_name` = 'AdminStockMvt';
DELETE FROM `PREFIX_tab` WHERE `class_name` = 'AdminStockInstantState';
DELETE FROM `PREFIX_tab` WHERE `class_name` = 'AdminStockCover';
DELETE FROM `PREFIX_tab` WHERE `class_name` = 'AdminSupplyOrders';
DELETE FROM `PREFIX_tab` WHERE `class_name` = 'AdminStockConfiguration';
-- Avoid Error Code: 1093 by nesting subrequest
DELETE FROM `PREFIX_tab` WHERE `id_parent` > 0 AND `id_parent` NOT IN (SELECT `id_tab` FROM (SELECT `id_tab` FROM `PREFIX_tab`) as c);
DELETE FROM `PREFIX_tab_lang` WHERE `id_tab` NOT IN (SELECT `id_tab` FROM `PREFIX_tab`);
/* Change the length of the ean13 field */
ALTER TABLE `PREFIX_product` MODIFY COLUMN `ean13` VARCHAR(20);
ALTER TABLE `PREFIX_order_detail` MODIFY COLUMN `product_ean13` VARCHAR(20);
ALTER TABLE `PREFIX_product_attribute` MODIFY COLUMN `ean13` VARCHAR(20);
ALTER TABLE `PREFIX_stock` MODIFY COLUMN `ean13` VARCHAR(20);
ALTER TABLE `PREFIX_supply_order_detail` MODIFY COLUMN `ean13` VARCHAR(20);
/* Change all empty string to 'default' */
UPDATE `PREFIX_product` SET `redirect_type` = 'default' WHERE `redirect_type` = '';
UPDATE `PREFIX_product_shop` SET `redirect_type` = 'default' WHERE `redirect_type` = '';
ALTER TABLE `PREFIX_product` MODIFY COLUMN `redirect_type` ENUM(
'404','410','301-product','302-product','301-category','302-category','200-displayed','404-displayed','410-displayed','default'
) NOT NULL DEFAULT 'default';
ALTER TABLE `PREFIX_product_shop` MODIFY COLUMN `redirect_type` ENUM(
'404','410','301-product','302-product','301-category','302-category','200-displayed','404-displayed','410-displayed','default'
) NOT NULL DEFAULT 'default';
/* Fixing duplicates for table "accessory" where can be duplicate records from older version of PrestaShop, because of missing PRIMARY index */
CREATE TABLE `PREFIX_accessory_tmp` SELECT DISTINCT `id_product_1`, `id_product_2` FROM `PREFIX_accessory`;
ALTER TABLE `PREFIX_accessory_tmp` ADD CONSTRAINT accessory_product PRIMARY KEY (`id_product_1`, `id_product_2`);
DROP TABLE `PREFIX_accessory`;
RENAME TABLE `PREFIX_accessory_tmp` TO `PREFIX_accessory`;
ALTER TABLE `PREFIX_stock_mvt` MODIFY `id_supply_order` INT(11) DEFAULT '0';
DROP TABLE IF EXISTS `PREFIX_api_access`;
DROP TABLE IF EXISTS `PREFIX_authorized_application`;
CREATE TABLE `PREFIX_api_client`
(
`id_api_client` int(10) unsigned NOT NULL AUTO_INCREMENT,
`client_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`client_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`client_secret` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`enabled` tinyint(1) NOT NULL,
`scopes` json NOT NULL,
`description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`external_issuer` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`lifetime` int(11) NOT NULL DEFAULT '3600',
PRIMARY KEY (`id_api_client`),
UNIQUE KEY `api_client_client_id_idx` (`client_id`,`external_issuer`),
UNIQUE KEY `api_client_client_name_idx` (`client_name`,`external_issuer`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `PREFIX_image_type`
CHANGE `id_image_type` `id_image_type` int(10) unsigned NOT NULL AUTO_INCREMENT,
CHANGE `width` `width` int(10) unsigned NOT NULL,
CHANGE `height` `height` int(10) unsigned NOT NULL,
CHANGE `products` `products` tinyint(1) NOT NULL DEFAULT '1',
CHANGE `manufacturers` `manufacturers` tinyint(1) NOT NULL DEFAULT '1',
CHANGE `stores` `stores` tinyint(1) NOT NULL DEFAULT '1',
DROP key `image_type_name`,
ADD UNIQUE KEY `UNIQ_907C95215E237E06` (`name`);
CREATE TABLE `PREFIX_mutation` (
`id_mutation` int(10) unsigned NOT NULL AUTO_INCREMENT,
`mutation_table` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`mutation_row_id` bigint(20) NOT NULL,
`mutation_action` enum('create','update','delete') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`mutator_type` enum('employee','api_client','module') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`mutator_identifier` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`mutation_details` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`date_add` datetime NOT NULL,
PRIMARY KEY (`id_mutation`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `PREFIX_access` ADD KEY `IDX_564352A15FCA037F` (`id_profile`);
ALTER TABLE `PREFIX_access` ADD KEY `IDX_564352A18C6DE0E5` (`id_authorization_role`);
ALTER TABLE `PREFIX_accessory` CHARSET=utf8mb4;
ALTER TABLE `PREFIX_employee` ADD KEY `IDX_1D8DF9EBBA299860` (`id_lang`);
ALTER TABLE `PREFIX_employee_session` ADD KEY `IDX_B10E26A1D449934` (`id_employee`);
ALTER TABLE `PREFIX_product_download` ADD KEY `product_active` (`id_product`,`active`);
ALTER TABLE `PREFIX_product_download` ADD UNIQUE KEY `id_product` (`id_product`);
ALTER TABLE `PREFIX_shop_url` CHANGE `id_shop_url` `id_shop_url` int(11) unsigned NOT NULL AUTO_INCREMENT;
ALTER TABLE `PREFIX_shop_url` CHANGE `id_shop` `id_shop` int(11) unsigned NOT NULL;
ALTER TABLE `PREFIX_shop_url` ADD UNIQUE KEY `full_shop_url` (`domain`,`physical_uri`,`virtual_uri`);
ALTER TABLE `PREFIX_shop_url` ADD UNIQUE KEY `full_shop_url_ssl` (`domain_ssl`,`physical_uri`,`virtual_uri`);
ALTER TABLE `PREFIX_shop_url` ADD KEY `id_shop` (`id_shop`,`main`);

View File

@@ -0,0 +1,34 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;