2
0
forked from Wavyzz/dolibarr

Fix: Clean orphelins

This commit is contained in:
Laurent Destailleur
2010-04-18 20:56:02 +00:00
parent bf50e0a2b1
commit f5ed264c1f

View File

@@ -190,6 +190,7 @@ create table llx_entity
INSERT INTO llx_entity (rowid, label, description, datec, fk_user_creat, visible, active) VALUES (1, 'Default Entity', 'This is the default entity', NOW(), 1, 1, 1);
-- Add constraint
-- V4.1 DELETE FROM llx_fichinterdet WHERE fk_fichinter NOT IN (SELECT rowid from llx_fichinter);
ALTER TABLE llx_fichinterdet ADD INDEX idx_fichinterdet_fk_fichinter (fk_fichinter);
ALTER TABLE llx_fichinterdet ADD CONSTRAINT fk_fichinterdet_fk_fichinter FOREIGN KEY (fk_fichinter) REFERENCES llx_fichinter (rowid);