Clear out empty sales and receivings comments on database upgrade

(#192)
This commit is contained in:
jekkos committed 2015-10-08 18:43:52 +02:00
1 parent 64023f6eec
commit 3eb798917d
1 file changed
+6 -1
+6 -1
View File
@@ -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`;
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';