akrabat / rka-doctrine-migrations-runner
Standalone runner for Doctrine Migrations
1.0.3
2015-05-24 10:40 UTC
Requires
- php: >=5.4
- doctrine/migrations: 1.0.*@dev
- symfony/console: ^2.5
- symfony/yaml: ^2.6
This package is auto-updated.
Last update: 2024-10-06 09:28:04 UTC
README
This project provides vendor/bin/migrations.php
which allows running
docrine/migrations1 without any framework integration.
Installation
$ 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)
Usage
-
Create a
migrations
folder -
Create a
migrations.yml
file containing: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', ); ?>
-
Test:
php vendor/bin/migrations.php status
See the documentation2 for the rest.