diff --git a/database/database.sql b/database/database.sql index 6b82be78a..58b8a41cd 100644 --- a/database/database.sql +++ b/database/database.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, diff --git a/database/migrate_phppos_dist.sql b/database/migrate_phppos_dist.sql index 5b1b55c6a..30018b1fc 100644 --- a/database/migrate_phppos_dist.sql +++ b/database/migrate_phppos_dist.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,