Company name can be DEFAULT NULL in database

This commit is contained in:
jekkos
2015-04-09 07:18:50 +02:00
parent 3f46f1aca9
commit 80dbe6efa7
2 changed files with 2 additions and 2 deletions

View File

@@ -41,4 +41,4 @@ ALTER TABLE `ospos_sales`
ADD INDEX `sale_time` (`sale_time`);
ALTER TABLE `ospos_customers`
`company_name` varchar(255) NOT NULL;
`company_name` varchar(255) DEFAULT NULL;

View File

@@ -77,7 +77,7 @@ INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
CREATE TABLE `ospos_customers` (
`person_id` int(10) NOT NULL,
`company_name` varchar(255) NOT NULL,
`company_name` varchar(255) DEFAULT NULL,
`account_number` varchar(255) DEFAULT NULL,
`taxable` int(1) NOT NULL DEFAULT '1',
`deleted` int(1) NOT NULL DEFAULT '0',