Merge pull request #1508 from objecttothis/patch-2

Increase acceptable length of custom fields and allow null values
This commit is contained in:
FrancescoUK
2017-08-25 13:15:25 +01:00
committed by GitHub

View File

@@ -404,3 +404,18 @@ ALTER TABLE ospos_suppliers CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_c
ALTER TABLE ospos_tax_categories CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
ALTER TABLE ospos_tax_code_rates CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
ALTER TABLE ospos_tax_codes CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
--
-- Increase acceptable length of custom fields and allow null values
--
ALTER TABLE ospos_items
MODIFY custom1 VARCHAR(255) DEFAULT NULL,
MODIFY custom2 VARCHAR(255) DEFAULT NULL,
MODIFY custom3 VARCHAR(255) DEFAULT NULL,
MODIFY custom4 VARCHAR(255) DEFAULT NULL,
MODIFY custom5 VARCHAR(255) DEFAULT NULL,
MODIFY custom6 VARCHAR(255) DEFAULT NULL,
MODIFY custom7 VARCHAR(255) DEFAULT NULL,
MODIFY custom8 VARCHAR(255) DEFAULT NULL,
MODIFY custom9 VARCHAR(255) DEFAULT NULL,
MODIFY custom10 VARCHAR(255) DEFAULT NULL;