librette / doctrine-migrations
dev-master
2020-02-27 11:39 UTC
Requires
- php: >=7.0
- doctrine/migrations: ~1.0@dev
- kdyby/console: *
- kdyby/events: *
- nette/di: ~2.4 || ~3.0
Suggests
- doctrine/orm: ~2.4
- kdyby/doctrine: ~1.0
This package is auto-updated.
Last update: 2024-11-27 22:02:44 UTC
README
Requirements
- PHP 5.3.2 or higher.
- Nette Framework 2.1.x
- Kdyby/Console
- Kdyby/Events
- Doctrine DBAL
Recommended:
Installation
The best way to install this extension is using Composer:
$ composer require librette/doctrine-migrations
Now you have to register this extension in your config.neon
extensions: migrations: Librette\Doctrine\Migrations\MigrationsExtension
Configuration
If you have already configured Doctrine, you don't have to configure anything else, but there are few things you can configure:
migrations: name: My migrations migrationsNamespace: MigrationsNamespace tableName: doctrine_migration_versions migrationsDirectory: %appDir%/migrations migrations: myMigration: version: 123 class: MyMigration123
Default values of migrationsNamespace, tableName and migrationsDirectory are the same as you see in example above.
Migrations directory must exists and must be writable.
Usage
Simply run Kdyby\Console and you should be able to use new commands.
For more detailed information about Doctrine Migrations visit Doctrine Migrations documentation