#!/usr/bin/env php init(); echo 'Creating migration repository...' . PHP_EOL; $repo = new FsDbMigrationRepo(MCR_DIR_MIG); echo 'Running migrations...' . PHP_EOL; $completed = $manager->processMigrations($repo); if(empty($completed)) { echo 'There were no migrations to run!' . PHP_EOL; } else { echo 'The following migrations have been completed:' . PHP_EOL; foreach($completed as $migration) echo ' - ' . $migration . PHP_EOL; } echo PHP_EOL; } finally { unlink(MCR_ROOT . '/.migrating'); }