Skip to content

quazardous/silex-migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quazardous Silex Doctrine Migrations Provider

Yet another one but for Silex 2 !

Intstallation

Add quazardous/silex-migration to your composer.json and register the service.

$app->register(new Quazardous\Silex\Provider\ConsoleServiceProvider, [
    'db.migrations.path' => '/path/to/migrations',
]);

You can customize the provider with parameters :

  • db.migrations.namespace
  • db.migrations.path
  • db.migrations.table_name
  • db.migrations.name

See tests/console.php for a full working minimum example.

Demo

cd demo
touch demo.db
../vendor/bin/doctrine orm:generate-entities entity/
../vendor/bin/doctrine orm:generate-proxies
php ./console.php migrations:diff
php ./console.php migrations:migrate

About

Doctrine migrations provider for Silex 2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages