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);