mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-07 07:17:43 -04:00
Database migration minor fixes
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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 '';
|
||||
|
||||
Reference in New Issue
Block a user