// added upgrade files (sql and php) in new installer

This commit is contained in:
mMarinetti
2012-01-11 17:57:49 +00:00
parent baf4a68f1a
commit b4d68ba23b
157 changed files with 10495 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
/* STRUCTURE */
CREATE TABLE `PREFIX_discount_quantity` (
id_discount_quantity INT UNSIGNED NOT NULL auto_increment,
id_discount_type INT UNSIGNED NOT NULL,
id_product INT UNSIGNED NOT NULL,
id_product_attribute INT UNSIGNED NULL,
quantity INT UNSIGNED NOT NULL,
value DECIMAL(10,2) UNSIGNED NOT NULL,
PRIMARY KEY (id_discount_quantity)
) ENGINE=MYISAM DEFAULT CHARSET=utf8;
ALTER TABLE `PREFIX_product` ADD quantity_discount BOOL NULL DEFAULT 0 AFTER out_of_stock;
/* CONTENTS */
/* CONFIGURATION VARIABLE */
UPDATE `PREFIX_configuration` SET name = 'PS_TAX', value = 1 WHERE name = 'PS_TAX_NO' AND value = 0;
UPDATE `PREFIX_configuration` SET name = 'PS_TAX', value = 0 WHERE name = 'PS_TAX_NO' AND value = 1;