Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akrabat/rka-doctrine-migrations-runner
Standalone runner for Doctrine Migrations
https://github.com/akrabat/rka-doctrine-migrations-runner
Last synced: 3 months ago
JSON representation
Standalone runner for Doctrine Migrations
- Host: GitHub
- URL: https://github.com/akrabat/rka-doctrine-migrations-runner
- Owner: akrabat
- License: other
- Created: 2015-05-24T09:48:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-24T10:40:26.000Z (over 9 years ago)
- Last Synced: 2024-10-04T11:30:52.947Z (3 months ago)
- Language: PHP
- Size: 145 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Standalone runner for Doctrine Migrations
This project provides `vendor/bin/migrations.php` which allows running
docrine/migrations[1] without any framework integration.[1]: http://docs.doctrine-project.org/projects/doctrine-migrations/en/latest/reference/introduction.html
## 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
1. Create a `migrations` folder
2. Create a `migrations.yml` file containing:name: Doctrine Migrations
migrations_namespace: Migrations
table_name: migrations
migrations_directory: migrations3. Create a migrations-db.php file containing your database connection details:
'database',
'user' => 'username',
'password' => 'mypassword',
'host' => 'localhost',
'driver' => 'pdo_mysql',
);
?>4. Test:
php vendor/bin/migrations.php status
See the documentation[2] for the rest.
[2]: http://docs.doctrine-project.org/projects/doctrine-migrations/en/latest/reference/migration_classes.html