Fix missing unique key

This commit is contained in:
Laurent Destailleur 2016-10-01 16:53:33 +02:00
parent 8083997df8
commit fcb00dbaf2
2 changed files with 3 additions and 1 deletions

View File

@ -118,3 +118,5 @@ create table llx_product_warehouse_properties
ALTER TABLE llx_accounting_bookkeeping ADD COLUMN entity integer DEFAULT 1 NOT NULL;
ALTER TABLE llx_accounting_account ADD INDEX uk_accounting_account (account_number, entity);

View File

@ -19,7 +19,7 @@
ALTER TABLE llx_accounting_account ADD INDEX idx_accounting_account_fk_pcg_version (fk_pcg_version);
ALTER TABLE llx_accounting_account ADD INDEX idx_accounting_account_account_number (account_number);
ALTER TABLE llx_accounting_account ADD INDEX uk_accounting_account (account_number, entity);
-- This keys are created into foreign table after creation of foreign index