diff --git a/upgrade/sql/1.7.5.0.sql b/upgrade/sql/1.7.5.0.sql index 467f3706d..176914249 100644 --- a/upgrade/sql/1.7.5.0.sql +++ b/upgrade/sql/1.7.5.0.sql @@ -88,3 +88,12 @@ ALTER TABLE `PREFIX_product_lang` 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`); diff --git a/upgrade/sql/1.7.7.0.sql b/upgrade/sql/1.7.7.0.sql index 0a7a8b081..402ccfbda 100644 --- a/upgrade/sql/1.7.7.0.sql +++ b/upgrade/sql/1.7.7.0.sql @@ -312,7 +312,9 @@ ALTER TABLE `PREFIX_connections` CHANGE `http_referer` `http_referer` varchar(25 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, ADD route_name VARCHAR(256) DEFAULT NULL, CHANGE class_name class_name VARCHAR(64) NOT NULL; +ALTER TABLE `PREFIX_tab` ADD enabled TINYINT(1) NOT NULL; +ALTER TABLE `PREFIX_tab` ADD route_name VARCHAR(256) DEFAULT NULL; +ALTER TABLE `PREFIX_tab` CHANGE class_name class_name VARCHAR(64) NOT NULL; /* PHP:ps_1770_preset_tab_enabled(); */; /* PHP:ps_1770_update_order_status_colors(); */; diff --git a/upgrade/sql/1.7.8.0.sql b/upgrade/sql/1.7.8.0.sql index 5f69395cd..c4ddf6f2e 100644 --- a/upgrade/sql/1.7.8.0.sql +++ b/upgrade/sql/1.7.8.0.sql @@ -205,7 +205,8 @@ VALUES 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, CHANGE id_shop id_shop INT NOT NULL; +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; diff --git a/upgrade/sql/8.0.0.sql b/upgrade/sql/8.0.0.sql index f1dc7d4a9..a05874031 100644 --- a/upgrade/sql/8.0.0.sql +++ b/upgrade/sql/8.0.0.sql @@ -241,6 +241,5 @@ UPDATE `PREFIX_carrier` SET `name` = 'Click and collect' WHERE `name` = '0'; /* 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, - CHANGE description_wording description_wording VARCHAR(512) DEFAULT '' NOT NULL; +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; diff --git a/upgrade/sql/8.1.0.sql b/upgrade/sql/8.1.0.sql index 08f043e5b..9724788ef 100644 --- a/upgrade/sql/8.1.0.sql +++ b/upgrade/sql/8.1.0.sql @@ -92,7 +92,7 @@ CREATE TABLE `PREFIX_authorized_application` description LONGTEXT NOT NULL, UNIQUE INDEX UNIQ_475B9BA55E237E06 (name), PRIMARY KEY (id_authorized_application) -) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = ENGINE_TYPE; +) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; CREATE TABLE `PREFIX_api_access` ( @@ -104,4 +104,4 @@ CREATE TABLE `PREFIX_api_access` scopes LONGTEXT NOT NULL COMMENT '(DC2Type:array)', INDEX IDX_6E064442D8BFF738 (id_authorized_application), PRIMARY KEY (id_api_access) -) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = ENGINE_TYPE; +) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;