From deed04cd46d64afa26cb49cbf39c2b3c2a203fd6 Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Wed, 3 Oct 2018 21:10:20 +0100 Subject: [PATCH] Alter cashup db table (#440 #2131) --- ...ade_to_3_3_0.php => 20181003120000_upgrade_to_3_3_0.php} | 0 application/migrations/sqlscripts/3.2.1_to_3.3.0.sql | 6 +++++- 2 files changed, 5 insertions(+), 1 deletion(-) rename application/migrations/{20180930120000_upgrade_to_3_3_0.php => 20181003120000_upgrade_to_3_3_0.php} (100%) diff --git a/application/migrations/20180930120000_upgrade_to_3_3_0.php b/application/migrations/20181003120000_upgrade_to_3_3_0.php similarity index 100% rename from application/migrations/20180930120000_upgrade_to_3_3_0.php rename to application/migrations/20181003120000_upgrade_to_3_3_0.php diff --git a/application/migrations/sqlscripts/3.2.1_to_3.3.0.sql b/application/migrations/sqlscripts/3.2.1_to_3.3.0.sql index 90b96d668..1a1591e16 100644 --- a/application/migrations/sqlscripts/3.2.1_to_3.3.0.sql +++ b/application/migrations/sqlscripts/3.2.1_to_3.3.0.sql @@ -69,7 +69,6 @@ CREATE TABLE `ospos_cash_up` ( `transfer_amount_cash` decimal(15,2) NOT NULL, `note` int(1) NOT NULL, `closed_amount_cash` decimal(15,2) NOT NULL, - `closed_amount_due` decimal(15,2) NOT NULL, `closed_amount_card` decimal(15,2) NOT NULL, `closed_amount_check` decimal(15,2) NOT NULL, `closed_amount_total` decimal(15,2) NOT NULL, @@ -98,3 +97,8 @@ ALTER TABLE `ospos_cash_up` ALTER TABLE ospos_cash_up CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; ALTER TABLE ospos_expense_categories CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; ALTER TABLE ospos_expenses CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; + +-- Add amount due + +ALTER TABLE `ospos_cash_up` + ADD `closed_amount_due` decimal(15,2) NOT NULL;