From 7b8a7033a196832a15f02ab7004f22f2c12fd55f Mon Sep 17 00:00:00 2001 From: objecttothis <17935339+objecttothis@users.noreply.github.com> Date: Fri, 25 Aug 2017 22:06:20 +0400 Subject: [PATCH] Update receivings and sales tables changing comment to default to null which allows comment fields to not be filled --- database/tables.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/tables.sql b/database/tables.sql index 3e6101eb8..06aaff1de 100644 --- a/database/tables.sql +++ b/database/tables.sql @@ -497,7 +497,7 @@ CREATE TABLE `ospos_receivings` ( `receiving_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `supplier_id` int(10) DEFAULT NULL, `employee_id` int(10) NOT NULL DEFAULT '0', - `comment` text NOT NULL, + `comment` text DEFAULT NULL, `receiving_id` int(10) NOT NULL AUTO_INCREMENT, `payment_type` varchar(20) DEFAULT NULL, `reference` varchar(32) DEFAULT NULL, @@ -549,7 +549,7 @@ CREATE TABLE `ospos_sales` ( `sale_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `customer_id` int(10) DEFAULT NULL, `employee_id` int(10) NOT NULL DEFAULT '0', - `comment` text NOT NULL, + `comment` text DEFAULT NULL, `invoice_number` varchar(32) DEFAULT NULL, `quote_number` varchar(32) DEFAULT NULL, `sale_id` int(10) NOT NULL AUTO_INCREMENT,