Commit cddfed7c authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

le OLD est calculé au besoin et plus automatiquement

parent 3d4ef238
Loading
Loading
Loading
Loading
+4 −1
Changes for admin/src/MigrationManager.php: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -38,7 +38,6 @@ class MigrationManager
        $this->oseAdmin = $oseAdmin;
        $this->ref      = $ref;
        $this->filtres  = DdlFilters::normalize($filters);
        $this->old      = $oseAdmin->getBdd()->getDdl($filters);
    }


@@ -270,6 +269,10 @@ class MigrationManager

    public function migration(string $context = 'pre', string $action = null)
    {
        if (!$this->old) {
            $this->old = $this->oseAdmin->getBdd()->getDdl($this->filters);
        }

        if (!is_dir($this->getMigrationDir())) return;
        $files = scandir($this->getMigrationDir());
        sort($files);