diff --git a/admin/actions/maj-public-links.php b/admin/actions/maj-public-links.php new file mode 100644 index 0000000000000000000000000000000000000000..eae3813af82ffd6b22abdee1847857eb598a1a86 --- /dev/null +++ b/admin/actions/maj-public-links.php @@ -0,0 +1,3 @@ +<?php + +// à supprimer pour la v19 \ No newline at end of file diff --git a/admin/migration/v18Divers.php b/admin/migration/v18Divers.php index db17f57a84263634393ab1dbf38d6138ee0f4e7b..0b87d6d7cdc5733589b64455e4902336b43b1ba8 100644 --- a/admin/migration/v18Divers.php +++ b/admin/migration/v18Divers.php @@ -26,6 +26,11 @@ class v18Divers extends AbstractMigration $bdd = $this->manager->getBdd(); $c = $this->manager->getOseAdmin()->getConsole(); + // test pour savoir si on est bien en V17 minimum + if (!$this->manager->hasColumn('INTERVENANT', 'EXPORT_DATE')) { + $c->printDie('Attention : vous devez d\'abord mettre à jour en version 17.3 AVANT de mettre à jour en version 18'); + } + try { $c->msg('Coupure forcée de la synchronisation sur la table INTERVENANT'); $bdd->exec("UPDATE IMPORT_TABLES SET SYNC_ENABLED = 0 WHERE TABLE_NAME = 'INTERVENANT'"); @@ -36,7 +41,7 @@ class v18Divers extends AbstractMigration $this->sauvegardes(); try { - $c->msg('Suppression de la contrainte TYPE_INTERVENANT_CODE_UN en prévision de sa recréation'); + $c->msg('Suppression des affectations de recherche ayant des structures invalides'); $bdd->exec("DELETE FROM AFFECTATION_RECHERCHE WHERE structure_id NOT IN (SELECT ID FROM STRUCTURE)"); } catch (\Exception $e) { // rien à faire : la contrainte a déjà du être supprimée