Skip to content

Commit

Permalink
Redundant Indexes removed in Standard Charts of Accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
apmuthu committed Dec 11, 2014
1 parent 27efb3e commit a0c2fa0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions core/sql/en_US-demo.sql
Expand Up @@ -571,7 +571,6 @@ CREATE TABLE IF NOT EXISTS `0_cust_allocations` (
`trans_type_to` int(11) default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY (`trans_type_from`,`trans_no_from`,`trans_type_to`,`trans_no_to`),
KEY `From` (`trans_type_from`,`trans_no_from`),
KEY `To` (`trans_type_to`,`trans_no_to`)
) ENGINE=InnoDB AUTO_INCREMENT=2 ;

Expand Down Expand Up @@ -611,7 +610,6 @@ CREATE TABLE IF NOT EXISTS `0_cust_branch` (
`bank_account` varchar(60) DEFAULT 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 ;
Expand Down Expand Up @@ -1930,7 +1928,6 @@ CREATE TABLE IF NOT EXISTS `0_supp_allocations` (
`trans_type_to` int(11) default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY (`trans_type_from`,`trans_no_from`,`trans_type_to`,`trans_no_to`),
KEY `From` (`trans_type_from`,`trans_no_from`),
KEY `To` (`trans_type_to`,`trans_no_to`)
) ENGINE=InnoDB AUTO_INCREMENT=2 ;

Expand Down Expand Up @@ -1997,9 +1994,7 @@ CREATE TABLE IF NOT EXISTS `0_supp_trans` (
`tax_included` tinyint(1) NOT NULL default '0',
`tax_algorithm` tinyint(1) NOT NULL default '1',
PRIMARY KEY (`type`,`trans_no`),
KEY `supplier_id` (`supplier_id`),
KEY `SupplierID_2` (`supplier_id`,`supp_reference`),
KEY `type` (`type`),
KEY `tran_date` (`tran_date`)
) ENGINE=InnoDB;

Expand Down
5 changes: 0 additions & 5 deletions core/sql/en_US-new.sql
Expand Up @@ -537,7 +537,6 @@ CREATE TABLE IF NOT EXISTS `0_cust_allocations` (
`trans_type_to` int(11) default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY (`trans_type_from`,`trans_no_from`,`trans_type_to`,`trans_no_to`),
KEY `From` (`trans_type_from`,`trans_no_from`),
KEY `To` (`trans_type_to`,`trans_no_to`)
) ENGINE=InnoDB AUTO_INCREMENT=1 ;

Expand Down Expand Up @@ -576,7 +575,6 @@ CREATE TABLE IF NOT EXISTS `0_cust_branch` (
`bank_account` varchar(60) DEFAULT 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 ;
Expand Down Expand Up @@ -1695,7 +1693,6 @@ CREATE TABLE IF NOT EXISTS `0_supp_allocations` (
`trans_type_to` int(11) default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY (`trans_type_from`,`trans_no_from`,`trans_type_to`,`trans_no_to`),
KEY `From` (`trans_type_from`,`trans_no_from`),
KEY `To` (`trans_type_to`,`trans_no_to`)
) ENGINE=InnoDB AUTO_INCREMENT=1 ;

Expand Down Expand Up @@ -1756,9 +1753,7 @@ CREATE TABLE IF NOT EXISTS `0_supp_trans` (
`tax_included` tinyint(1) NOT NULL default '0',
`tax_algorithm` tinyint(1) NOT NULL default '1',
PRIMARY KEY (`type`,`trans_no`),
KEY `supplier_id` (`supplier_id`),
KEY `SupplierID_2` (`supplier_id`,`supp_reference`),
KEY `type` (`type`),
KEY `tran_date` (`tran_date`)
) ENGINE=InnoDB;

Expand Down

0 comments on commit a0c2fa0

Please sign in to comment.