Database migration minor fixes

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

View File

@@ -9,7 +9,7 @@ class Migration_Attributes extends CI_Migration
public function up()
{
execute_script(APPPATH . 'migrations/sqlscripts/attributes.sql');
execute_script(APPPATH . 'migrations/sqlscripts/3.3.0_attributes.sql');
}
public function down()

View File

@@ -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`;

View File

@@ -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 '';