diff --git a/htdocs/install/mysql/migration/3.1.0-3.2.0.sql b/htdocs/install/mysql/migration/3.1.0-3.2.0.sql index 2f2e898261404548cb70027612758e2603b35e34..3b5bd43e5addb03876d9f2a0142e8bae52e47bb1 100755 --- a/htdocs/install/mysql/migration/3.1.0-3.2.0.sql +++ b/htdocs/install/mysql/migration/3.1.0-3.2.0.sql @@ -30,7 +30,11 @@ update llx_facture_rec set fk_projet = null where fk_projet not in (select rowid update llx_fichinter set fk_projet = null where fk_projet not in (select rowid from llx_projet); update llx_projet_task set fk_projet = null where fk_projet not in (select rowid from llx_projet); +update llx_propal set fk_user_author = null where fk_user_author not in (select rowid from llx_user); +update llx_propal set fk_user_valid = null where fk_user_valid not in (select rowid from llx_user); +update llx_propal set fk_user_cloture = null where fk_user_cloture not in (select rowid from llx_user); update llx_commande set fk_user_author = null where fk_user_author not in (select rowid from llx_user); +update llx_commande set fk_user_valid = null where fk_user_valid not in (select rowid from llx_user); ALTER TABLE llx_extrafields ADD COLUMN TYPE VARCHAR(8); diff --git a/htdocs/install/mysql/migration/repair.sql b/htdocs/install/mysql/migration/repair.sql index 81f652c190cc03b09b90c43882ab585e95598067..14f8e68821883f644b1ac6aee9d80c61c6336a76 100644 --- a/htdocs/install/mysql/migration/repair.sql +++ b/htdocs/install/mysql/migration/repair.sql @@ -34,7 +34,11 @@ update llx_facture_rec set fk_projet = null where fk_projet not in (select rowid update llx_fichinter set fk_projet = null where fk_projet not in (select rowid from llx_projet); update llx_projet_task set fk_projet = null where fk_projet not in (select rowid from llx_projet); +update llx_propal set fk_user_author = null where fk_user_author not in (select rowid from llx_user); +update llx_propal set fk_user_valid = null where fk_user_valid not in (select rowid from llx_user); +update llx_propal set fk_user_cloture = null where fk_user_cloture not in (select rowid from llx_user); update llx_commande set fk_user_author = null where fk_user_author not in (select rowid from llx_user); +update llx_commande set fk_user_valid = null where fk_user_valid not in (select rowid from llx_user); delete from llx_societe_extrafields where fk_object not in (select rowid from llx_societe); delete from llx_adherent_extrafields where fk_object not in (select rowid from llx_adherent);