From dbfe9b7e55bc5cd85b76318ad1ca8314e8d1668b Mon Sep 17 00:00:00 2001 From: jekkos Date: Sun, 16 Sep 2018 23:43:55 +0200 Subject: [PATCH] Migration script fixes --- application/migrations/sqlscripts/3.0.2_to_3.1.1.sql | 6 +++++- database/2.4_to_3.0.sql | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/application/migrations/sqlscripts/3.0.2_to_3.1.1.sql b/application/migrations/sqlscripts/3.0.2_to_3.1.1.sql index a74b193d1..e366e071e 100644 --- a/application/migrations/sqlscripts/3.0.2_to_3.1.1.sql +++ b/application/migrations/sqlscripts/3.0.2_to_3.1.1.sql @@ -69,7 +69,8 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES ('last_used_invoice_number', '0'), ('last_used_quote_number', '0'), ('line_sequence', '0'), -('dinner_table_enable', '0'); +('dinner_table_enable', '0'), +('customer_sales_tax_support', '0'); -- -- Table structure for table `ospos_customer_packages` @@ -415,3 +416,6 @@ ALTER TABLE ospos_items -- Change language code en to be en-US UPDATE `ospos_app_config` SET `value` = 'en-US' WHERE `key` = 'language_code' AND `value` = 'en'; + +-- Delete any configured specific locale as folders were moved in this version +DELETE FROM `ospos_app_config` WHERE `key` = 'language_code' and `value` LIKE '%_%'; diff --git a/database/2.4_to_3.0.sql b/database/2.4_to_3.0.sql index 5369c7efa..02399fce0 100644 --- a/database/2.4_to_3.0.sql +++ b/database/2.4_to_3.0.sql @@ -51,6 +51,7 @@ UPDATE `ospos_app_config` SET `key` = 'receipt_show_total_discount' WHERE `key` DELETE FROM `ospos_app_config` WHERE `key` = 'use_invoice_template'; DELETE FROM `ospos_app_config` WHERE `key` = 'language'; +DELETE FROM `ospos_app_config` WHERE `key` = 'thousands_separator'; INSERT INTO `ospos_app_config` (`key`, `value`) VALUES ('receipt_show_description', '1'),