Skip to content
Snippets Groups Projects
Commit 59a0fef6 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Protection des procs de MAJ v18

parent e8c2c5c8
No related branches found
No related tags found
No related merge requests found
......@@ -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');
}
......
......@@ -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');
}
......
......@@ -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');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment