From ddaa1e88e9dd98431851fc35e88ff11fd25bb68f Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Fri, 18 Aug 2017 19:48:33 +0100 Subject: [PATCH] Fix comment cannot be null issue (#1483) --- database/2.3.2_to_2.3.3.sql | 11 ++++++++++- 1 file changed, 10 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 64cd6ab15..08c8ab051 100644 --- a/database/2.3.2_to_2.3.3.sql +++ b/database/2.3.2_to_2.3.3.sql @@ -13,6 +13,15 @@ ALTER TABLE `ospos_items` CHANGE COLUMN `item_pic` `pic_id` int(10) DEFAULT NULL; -- Clear out emptied comments (0 inserted in comment if empty #192) +ALTER TABLE ospos_sales +MODIFY COLUMN comment text DEFAULT NULL; + +ALTER TABLE ospos_receivings +MODIFY COLUMN comment text DEFAULT NULL; + +ALTER TABLE ospos_sales_suspended +MODIFY COLUMN comment text DEFAULT NULL; + UPDATE `ospos_sales` SET comment = NULL WHERE comment = '0'; UPDATE `ospos_receivings` SET comment = NULL WHERE comment = '0'; -UPDATE `ospos_sales_suspended` SET comment = NULL WHERE comment = '0'; \ No newline at end of file +UPDATE `ospos_sales_suspended` SET comment = NULL WHERE comment = '0';