Commit 59a0fef6 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Protection des procs de MAJ v18

parent e8c2c5c8
Loading
Loading
Loading
Loading
+6 −1
Changes for admin/migration/v18Plafonds.php: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -16,7 +16,12 @@ class v18Plafonds extends AbstractMigration

    public function utile(): bool
    {
        return $this->manager->hasNew('table', 'PLAFOND_PERIMETRE') || $this->manager->hasTable('SAVE_V18_PLAFOND');
        return $this->manager->hasNew('table', 'PLAFOND_PERIMETRE')
            && $this->manager->hasTable('SAVE_V18_PLAFOND')
            && $this->manager->hasTable('SAVE_V18_STRUCTURE')
            && $this->manager->hasTable('SAVE_V18_PLAFOND_APP')
            && $this->manager->hasTable('SAVE_V18_REFERENTIEL')
            && $this->manager->hasTable('SAVE_V18_STATUT');
    }


+1 −1
Changes for admin/migration/v18Privileges.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ class v18Privileges extends AbstractMigration

    public function utile(): bool
    {
        return $this->manager->hasTable('SAVE_V18_PRIVILEGE');
        return $this->manager->hasTable('SAVE_V18_PRIVILEGE') && $this->manager->hasTable('SAVE_V18_ROLE_PRIVILEGE');
    }


+7 −1
Changes for admin/migration/v18Statuts.php: 7 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -16,7 +16,13 @@ class v18Statuts extends AbstractMigration

    public function utile(): bool
    {
        return $this->manager->hasOld('table', 'STATUT_INTERVENANT');
        return $this->manager->hasOld('table', 'STATUT_INTERVENANT')
            && $this->manager->hasTable('SAVE_V18_STATUT')
            && $this->manager->hasTable('SAVE_V18_STATUT_PRIVILEGE')
            && $this->manager->hasTable('SAVE_V18_DOSSIER_AUTRE_STATUT')
            && $this->manager->hasTable('SAVE_V18_TA_STATUT')
            && $this->manager->hasTable('SAVE_V18_INTERVENANT')
            && $this->manager->hasTable('SAVE_V18_DOSSIER');
    }