From 3612ecf57729fae9aead6ccec9264c9dfde3ca61 Mon Sep 17 00:00:00 2001 From: objecttothis <17935339+objecttothis@users.noreply.github.com> Date: Sun, 27 Aug 2017 13:16:21 +0400 Subject: [PATCH] Addition and changes This app_config key/value exists in the 3.0.2_to_3.1.0 upgrade script but not in tables.sql Custom values changed to varchar 255 and allowing null to match change in update scripts. --- database/tables.sql | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/database/tables.sql b/database/tables.sql index 06aaff1de..43acceb87 100644 --- a/database/tables.sql +++ b/database/tables.sql @@ -110,7 +110,8 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES ('receipt_font_size', '12'), ('gcaptcha_enable', '0'), ('gcaptcha_secret_key', ''), -('gcaptcha_site_key', ''); +('gcaptcha_site_key', ''), +('receiving_calculate_average_price', '0'); -- -------------------------------------------------------- @@ -234,16 +235,16 @@ CREATE TABLE `ospos_items` ( `item_type` TINYINT(2) NOT NULL DEFAULT 0, `tax_category_id` int(10) NOT NULL DEFAULT 1, `deleted` int(1) NOT NULL DEFAULT '0', - `custom1` VARCHAR(25) NOT NULL, - `custom2` VARCHAR(25) NOT NULL, - `custom3` VARCHAR(25) NOT NULL, - `custom4` VARCHAR(25) NOT NULL, - `custom5` VARCHAR(25) NOT NULL, - `custom6` VARCHAR(25) NOT NULL, - `custom7` VARCHAR(25) NOT NULL, - `custom8` VARCHAR(25) NOT NULL, - `custom9` VARCHAR(25) NOT NULL, - `custom10` VARCHAR(25) NOT NULL, + `custom1` VARCHAR(255) DEFAULT NULL, + `custom2` VARCHAR(255) DEFAULT NULL, + `custom3` VARCHAR(255) DEFAULT NULL, + `custom4` VARCHAR(255) DEFAULT NULL, + `custom5` VARCHAR(255) DEFAULT NULL, + `custom6` VARCHAR(255) DEFAULT NULL, + `custom7` VARCHAR(255) DEFAULT NULL, + `custom8` VARCHAR(255) DEFAULT NULL, + `custom9` VARCHAR(255) DEFAULT NULL, + `custom10` VARCHAR(255) DEFAULT NULL, PRIMARY KEY (`item_id`), UNIQUE KEY `item_number` (`item_number`), KEY `supplier_id` (`supplier_id`)