Database migration minor fixes

This commit is contained in:
FrancescoUK committed 2020-01-19 22:45:17 +00:00
1 parent 7739994eda
commit 6e523a30ab
4 files changed
+4 -4

No files matched your search

@@ -71,7 +71,7 @@ CREATE TABLE IF NOT EXISTS `ospos_tax_jurisdictions` (
`cascade_sequence` tinyint(2) NOT NULL DEFAULT 0,
`deleted` int(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`jurisdiction_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
ALTER TABLE `ospos_suppliers`
ADD COLUMN `tax_id` varchar(32) DEFAULT NULL AFTER `account_number`;
@@ -1,6 +1,6 @@
UPDATE `ospos_suppliers`
SET `tax_id` = ''
WHERE `tax_id`IS NULL;
WHERE `tax_id` IS NULL;
ALTER TABLE `ospos_suppliers`
CHANGE COLUMN `tax_id` `tax_id` varchar(32) NOT NULL DEFAULT '';
CHANGE COLUMN `tax_id` `tax_id` varchar(32) NOT NULL DEFAULT '';