From 0c520eecf601c800861caf7ae993268fdac1b522 Mon Sep 17 00:00:00 2001 From: tleon Date: Wed, 19 Feb 2025 17:34:17 +0100 Subject: [PATCH] chore(sql): add a new column type to the cart_rule table and index it --- upgrade/sql/9.1.0.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 upgrade/sql/9.1.0.sql diff --git a/upgrade/sql/9.1.0.sql b/upgrade/sql/9.1.0.sql new file mode 100644 index 000000000..387762cae --- /dev/null +++ b/upgrade/sql/9.1.0.sql @@ -0,0 +1,7 @@ +SET SESSION sql_mode=''; +SET NAMES 'utf8mb4'; + +/* Add a new field to cart_rule */ +/* https://github.com/PrestaShop/PrestaShop/pull/37911/ */ +ALTER TABLE `PREFIX_cart_rule` ADD COLUMN `type` varchar(128) DEFAULT NULL; +CREATE INDEX `type` ON `PREFIX_cart_rule` (`type`)