Example #1
0
 public function getSql()
 {
     $out = array();
     $executedMigrations = $this->getMigrationIdFromBase();
     $migrations = $this->_getMigrations();
     rsort($migrations);
     foreach ($migrations as $migrationId) {
         $migration = new Migration($migrationId);
         $migration->setIsExecuted(in_array($migrationId, $executedMigrations));
         $out[] = $migration;
     }
     return $out;
 }