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 8e8dd2f8059..8523fce46c5 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 f14928a5db4..eeb091aa4b2 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);