Skip to content

librette/doctrine-migrations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages