Remove duplicate attribute_links constraint (#4012)

This commit is contained in:
jekkos
2024-09-16 00:21:11 +02:00
committed by jekkos
parent 8a346b0b4c
commit b41196966c
2 changed files with 0 additions and 9 deletions

View File

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

View File

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