diff --git a/database/3.0.2_to_3.1.0.sql b/database/3.0.2_to_3.1.0.sql index 443a60d05..e3a4fd5cf 100644 --- a/database/3.0.2_to_3.1.0.sql +++ b/database/3.0.2_to_3.1.0.sql @@ -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;