Standalone runner for Doctrine Migrations
This project provides
vendor/bin/migrations.php which allows running
docrine/migrations1 without any framework integration.
$ composer require doctrine/migrations:dev-master $ composer require akrabat/rka-doctrine-migrations-runner
(We need to explictly require doctrine/migrations as that project hasn't yet published a stable version)
name: Doctrine Migrations migrations_namespace: Migrations table_name: migrations migrations_directory: migrations
Create a migrations-db.php file containing your database connection details:
<?php return array( 'dbname' => 'database', 'user' => 'username', 'password' => 'mypassword', 'host' => 'localhost', 'driver' => 'pdo_mysql', ); ?>
php vendor/bin/migrations.php status
See the documentation2 for the rest.