dev-master
9999999-dev
GPL-3.0 BSD-3-Clause GPL-2.0
The Requires
migrations doctrine nette librette
Wallogit.com
2017 © Pedro Peláez
Recommended:, (*1)
The best way to install this extension is using Composer:, (*2)
$ composer require librette/doctrine-migrations
Now you have to register this extension in your config.neon, (*3)
extensions:
migrations: Librette\Doctrine\Migrations\MigrationsExtension
If you have already configured Doctrine, you don't have to configure anything else, but there are few things you can configure:, (*4)
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., (*5)
Migrations directory must exists and must be writable., (*6)
Simply run Kdyby\Console and you should be able to use new commands., (*7)
For more detailed information about Doctrine Migrations visit Doctrine Migrations documentation, (*8)
GPL-3.0 BSD-3-Clause GPL-2.0
migrations doctrine nette librette