public function initialize()
    {
        if ($this->versionStorage->hasVersioningNode()) {
            throw new MigratorException('This repository has already been initialized. Will not re-initialize.');
        }

        foreach (array_keys($this->versionCollection->getAllVersions()) as $timestamp) {
            $this->versionStorage->add($timestamp);
        }

        $this->session->save();
    }
public function initialize()
    {
        if ($this->versionStorage->hasVersioningNode()) {
            throw new MigratorException('This repository has already been initialized. Will not re-initialize.');
        }

        foreach (array_keys($this->versionCollection->getAllVersions()) as $timestamp) {
            $this->versionStorage->add($timestamp);
        }

        $this->session->save();
    }
public function initialize ( ) { if ( $ this -> versionStorage -> hasVersioningNode ( ) ) { throw new MigratorException ( 'This repository has already been initialized. Will not re-initialize.' ) ; } foreach ( array_keys ( $ this -> versionCollection -> getAllVersions ( ) ) as $ timestamp ) { $ this -> versionStorage -> add ( $ timestamp ) ; } $ this -> session -> save ( ) ; }
Add all the migrations without running them.
This should be executed on new database installations.
Add all the migrations without running them . This should be executed on new database installations .