Loading admin/actions/maj-public-links.php 0 → 100644 +3 −0 Changes for admin/actions/maj-public-links.php: 3 added lines, 0 removed lines. Original line number Diff line number Diff line <?php // à supprimer pour la v19 No newline at end of file admin/migration/v18Divers.php +6 −1 Changes for admin/migration/v18Divers.php: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -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'"); Loading @@ -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 Loading Loading
admin/actions/maj-public-links.php 0 → 100644 +3 −0 Changes for admin/actions/maj-public-links.php: 3 added lines, 0 removed lines. Original line number Diff line number Diff line <?php // à supprimer pour la v19 No newline at end of file
admin/migration/v18Divers.php +6 −1 Changes for admin/migration/v18Divers.php: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -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'"); Loading @@ -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 Loading