dbtlr / silex-doctrine-migrations
Doctrine migration service provider for Silex
Installs: 18 622
Dependents: 4
Suggesters: 0
Security: 0
Stars: 11
Watchers: 2
Forks: 9
Open Issues: 2
Requires
- php: >=5.3.2
- doctrine/dbal: ~2.5
- doctrine/migrations: 1.0.*@dev
- knplabs/console-service-provider: ~1.0
- silex/silex: ~1.2
Suggests
- dflydev/doctrine-orm-service-provider: 1.0.x-dev
This package is not auto-updated.
Last update: 2024-11-09 17:55:59 UTC
README
This is a wrapper for the Doctrine Migrations project.
For more information on how to use the schema manager, please see Doctrine's Schema Manager documentation.
Install via Composer
composer.phar require dbtlr/silex-doctrine-migrations
Add service provider
$app->register(new \Dbtlr\MigrationProvider\Provider\MigrationServiceProvider(), array( 'db.migrations.path' => __DIR__ . '/../app/migrations', ));
Config options
db.migrations.path
(required): The full path where you want to store your migration classes.db.migrations.table_name
(optional): The name of the table that we store meta information about the state of migrations. Defaults to: migration_versions.db.migrations.namespace
(optional): The namespace for the migration classes (defaults to: DoctrineMigration).db.migrations.name
(optional): TThe name of the migrations to use.
Available commands
- migrations:execute Execute a single migration version up or down manually.
- migrations:generate Generate a blank migration class.
- migrations:migrate Execute a migration to a specified version or the latest available version.
- migrations:status View the status of a set of migrations.
- migrations:version Manually add and delete migration versions from the version table.