From 7a782a28edc262e29d2e2717aa5baa71fe4974d7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 18 Nov 2009 14:37:28 +0000 Subject: [PATCH] Fix: Error in migrate due to new constraint. --- htdocs/install/mysql/migration/2.6.0-2.7.0.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/install/mysql/migration/2.6.0-2.7.0.sql b/htdocs/install/mysql/migration/2.6.0-2.7.0.sql index 09b9f8e5f79..30e2cb64bce 100644 --- a/htdocs/install/mysql/migration/2.6.0-2.7.0.sql +++ b/htdocs/install/mysql/migration/2.6.0-2.7.0.sql @@ -492,4 +492,5 @@ ALTER TABLE llx_adherent_options ADD INDEX idx_adherent_options (fk_member); ALTER TABLE llx_adherent DROP INDEX idx_adherent_fk_soc; ALTER TABLE llx_propaldet ADD INDEX idx_propaldet_fk_propal (fk_propal); +-- V4.1 delete from llx_propaldet where fk_propal not in (select rowid from llx_propal); ALTER TABLE llx_propaldet ADD CONSTRAINT fk_propaldet_fk_propal FOREIGN KEY (fk_propal) REFERENCES llx_propal (rowid);