Skip to content

Commit

Permalink
Add 1.7.5 related changes
Browse files Browse the repository at this point in the history
  • Loading branch information
M0rgan01 committed May 14, 2024
1 parent 150a23f commit 8fdf343
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
9 changes: 9 additions & 0 deletions upgrade/sql/1.7.5.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
4 changes: 3 additions & 1 deletion upgrade/sql/1.7.7.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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(); */;
Expand Down
3 changes: 2 additions & 1 deletion upgrade/sql/1.7.8.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;
5 changes: 2 additions & 3 deletions upgrade/sql/8.0.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;
4 changes: 2 additions & 2 deletions upgrade/sql/8.1.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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`
(
Expand All @@ -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;

0 comments on commit 8fdf343

Please sign in to comment.