From 17c23ad4171f427ec8487c5460699466cf6da1fe Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Sat, 29 Oct 2016 20:31:23 +0100 Subject: [PATCH] Added change from item_pic to pic_id in Items table in 2.3.2_to_2.3.3.sql script (#945) --- database/2.3.2_to_2.3.3.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/database/2.3.2_to_2.3.3.sql b/database/2.3.2_to_2.3.3.sql index 045f35359..64cd6ab15 100644 --- a/database/2.3.2_to_2.3.3.sql +++ b/database/2.3.2_to_2.3.3.sql @@ -9,6 +9,9 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES ALTER TABLE `ospos_sales_suspended` DROP KEY `invoice_number`; +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) UPDATE `ospos_sales` SET comment = NULL WHERE comment = '0'; UPDATE `ospos_receivings` SET comment = NULL WHERE comment = '0';