librette/doctrine-migrations

dev-master 2020-02-27 11:39 UTC

This package is auto-updated.

Last update: 2024-11-27 22:02:44 UTC


README

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