From 80f7966d1c6b28bcb8704768cfada78b7700964a Mon Sep 17 00:00:00 2001 From: jekkos Date: Sun, 6 Sep 2015 15:53:11 +0200 Subject: [PATCH] Add default dateformat and timeformat in data scripts --- database/2.3.2_to_2.3.3.sql | 4 ++++ database/database.sql | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/database/2.3.2_to_2.3.3.sql b/database/2.3.2_to_2.3.3.sql index 871f4aaf9..440386d33 100644 --- a/database/2.3.2_to_2.3.3.sql +++ b/database/2.3.2_to_2.3.3.sql @@ -1,2 +1,6 @@ ALTER TABLE `ospos_suppliers` ADD COLUMN `agency_name` VARCHAR(255) NOT NULL; + +INSERT INTO `ospos_app_config` (`key`, `value`) VALUES + ('dateformat', 'm-d-Y'), + ('timeformat', 'H:i:s'); diff --git a/database/database.sql b/database/database.sql index 9914e23f9..9d0cbbd95 100644 --- a/database/database.sql +++ b/database/database.sql @@ -67,7 +67,10 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES ('print_right_margin', '0'), ('default_sales_discount', '0'), ('lines_per_page', '25'), -('show_total_discount', '1'); +('show_total_discount', '1'), +('dateformat', 'm-d-Y'), +('timeformat', 'H:i:s'), +('currency_symbol', '$'); -- --------------------------------------------------------