Fixed supp_trans primary keys, rerun.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 28 Oct 2017 08:27:23 +0000 (10:27 +0200)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 28 Oct 2017 08:27:23 +0000 (10:27 +0200)
sql/en_US-demo.sql
sql/en_US-new.sql

index d2066ec7a9270ee4e3c6b10d55236db69dbe3ff2..f2b7e2f010752e7158cee9716ff49f2117fff5b8 100644 (file)
@@ -2069,7 +2069,7 @@ CREATE TABLE IF NOT EXISTS `0_supp_trans` (
   `rate` double NOT NULL DEFAULT '1',
   `alloc` double NOT NULL DEFAULT '0',
   `tax_included` tinyint(1) NOT NULL DEFAULT '0',
-  PRIMARY KEY (`type`,`trans_no`,`debtor_no`),
+  PRIMARY KEY (`type`,`trans_no`,`supplier_id`),
   KEY `supplier_id` (`supplier_id`),
   KEY `tran_date` (`tran_date`)
 ) ENGINE=InnoDB;
index cf3920cb57e745fed265dc4430d31bafbb44e1ae..2276c338ed6446037e0334300135c18bad01f9fd 100644 (file)
@@ -1796,7 +1796,7 @@ CREATE TABLE IF NOT EXISTS `0_supp_trans` (
   `rate` double NOT NULL default '1',
   `alloc` double NOT NULL default '0',
   `tax_included` tinyint(1) NOT NULL default '0',
-  PRIMARY KEY (`type`,`trans_no`),
+  PRIMARY KEY (`type`,`trans_no`,`supplier_id`),
   KEY `supplier_id` (`supplier_id`),
   KEY `tran_date` (`tran_date`)
 ) ENGINE=InnoDB;