From 3eb798917dffacc86500d65374b270c6f4749131 Mon Sep 17 00:00:00 2001 From: jekkos Date: Thu, 8 Oct 2015 18:43:52 +0200 Subject: [PATCH] Clear out empty sales and receivings comments on database upgrade (#192) --- database/2.3.2_to_2.3.3.sql | 7 ++++++- 1 file changed, 6 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 958e5b5ae..bc1a92757 100644 --- a/database/2.3.2_to_2.3.3.sql +++ b/database/2.3.2_to_2.3.3.sql @@ -6,4 +6,9 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES ('timeformat', 'H:i:s'); ALTER TABLE `ospos_sales_suspended` - DROP KEY `invoice_number`; \ No newline at end of file + DROP KEY `invoice_number`; + +-- Clear out emptied comments (0 inserted in comments if emtpy ##192) +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