Fix: [ bug #1754 ] Error while installing 3.7

This commit is contained in:
Laurent Destailleur 2015-01-06 00:04:23 +01:00
parent d8d01090cd
commit 3794c9305e

View File

@ -21,5 +21,8 @@ ALTER TABLE llx_c_departements ADD UNIQUE uk_departements (code_departement,fk_r
ALTER TABLE llx_c_departements ADD INDEX idx_departements_fk_region (fk_region);
-- NOTE: We duplicate creation of unique keys on llx_c_regions NOW to be able to create foreign keys.
ALTER TABLE llx_c_regions ADD UNIQUE INDEX uk_code_region (code_region);
ALTER TABLE llx_c_departements ADD CONSTRAINT fk_departements_fk_region FOREIGN KEY (fk_region) REFERENCES llx_c_regions (code_region);