mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-18 21:40:52 -04:00
Remove duplicate attribute_links constraint (#4012)
This commit is contained in:
@@ -154,12 +154,6 @@ class Migration_IndiaGST extends Migration
|
||||
|
||||
$jurisdiction_id = $this->db->query('SELECT jurisdiction_id FROM ' . $this->db->prefixTable('tax_jurisdictions') . " WHERE jurisdiction_name = 'Jurisdiction1'")->getRow()->jurisdiction_id;
|
||||
|
||||
if(!$jurisdiction_id)
|
||||
{
|
||||
error_log('Tax rate migration failed due to severe errors. Tax jurisdictions will need to be cleaned up manually');
|
||||
$jurisdiction_id = 1;
|
||||
}
|
||||
|
||||
// Insert old tax_code rates data into the new tax rates table
|
||||
$this->db->query('INSERT INTO ' . $this->db->prefixTable('tax_rates')
|
||||
. ' (rate_tax_category_id, rate_jurisdiction_id, rate_tax_code_id, tax_rate, tax_rounding_code) '
|
||||
|
||||
@@ -7,9 +7,6 @@ ALTER TABLE `ospos_attribute_definitions` MODIFY `definition_flags` tinyint(1) N
|
||||
ALTER TABLE `ospos_attribute_definitions` ADD INDEX(`definition_name`);
|
||||
ALTER TABLE `ospos_attribute_definitions` ADD INDEX(`definition_type`);
|
||||
|
||||
#opsos_attribute_links table
|
||||
ALTER TABLE `ospos_attribute_links` ADD UNIQUE INDEX `attribute_links_uq2` (`item_id`,`sale_id`,`receiving_id`,`definition_id`,`attribute_id`);
|
||||
|
||||
#ospos_cash_up table
|
||||
ALTER TABLE `ospos_cash_up` MODIFY `deleted` tinyint(1) DEFAULT 0 NOT NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user