Removed redundant indexes on cust_branch & supp_trans tables
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 20 Dec 2014 16:16:55 +0000 (17:16 +0100)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 20 Dec 2014 16:18:12 +0000 (17:18 +0100)
sql/en_US-demo.sql
sql/en_US-new.sql

index 08dc0230ccb908e5f37937fbb6ab4e7f9ad0df88..0c63c06f7125c994964092d564a5dcd803c49e9e 100644 (file)
@@ -613,7 +613,6 @@ CREATE TABLE IF NOT EXISTS `0_cust_branch` (
   `notes` tinytext NOT NULL,
   `inactive` tinyint(1) NOT NULL default '0',
   PRIMARY KEY  (`branch_code`,`debtor_no`),
-  KEY `branch_code` (`branch_code`),
   KEY `branch_ref` (`branch_ref`),
   KEY `group_no` (`group_no`)
 ) ENGINE=MyISAM  AUTO_INCREMENT=4 ;
@@ -1978,9 +1977,7 @@ CREATE TABLE IF NOT EXISTS `0_supp_trans` (
   `alloc` double NOT NULL default '0',
   `tax_included` tinyint(1) NOT NULL default '0',
   PRIMARY KEY  (`type`,`trans_no`),
-  KEY `supplier_id` (`supplier_id`),
-  KEY `SupplierID_2` (`supplier_id`,`supp_reference`),
-  KEY `type` (`type`),
+  KEY `supplier_id` (`supplier_id`,`supp_reference`),
   KEY `tran_date` (`tran_date`)
 ) ENGINE=InnoDB;
 
index d0fabd3c08c0ad40221d410ae4c51fd47a86b8ac..34b11c006b001a5a2dfdd6a8872c083355234361 100644 (file)
@@ -578,7 +578,6 @@ CREATE TABLE IF NOT EXISTS `0_cust_branch` (
   `notes` tinytext NOT NULL,
   `inactive` tinyint(1) NOT NULL default '0',
   PRIMARY KEY  (`branch_code`,`debtor_no`),
-  KEY `branch_code` (`branch_code`),
   KEY `branch_ref` (`branch_ref`),
   KEY `group_no` (`group_no`)
 ) ENGINE=MyISAM AUTO_INCREMENT=1 ;
@@ -1743,8 +1742,7 @@ CREATE TABLE IF NOT EXISTS `0_supp_trans` (
   `alloc` double NOT NULL default '0',
   `tax_included` tinyint(1) NOT NULL default '0',
   PRIMARY KEY  (`type`,`trans_no`),
-  KEY `supplier_id` (`supplier_id`),
-  KEY `SupplierID_2` (`supplier_id`,`supp_reference`),
+  KEY `supplier_id` (`supplier_id`,`supp_reference`),
   KEY `type` (`type`),
   KEY `tran_date` (`tran_date`)
 ) ENGINE=InnoDB;