Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 1.56 KB

README.md

File metadata and controls

63 lines (43 loc) · 1.56 KB

Librette/Doctrine Migrations

Requirements

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