Skip to content

dotblue/nextras-migrations-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Easy setup for nextras/migrations with kdyby/console

Requirements

Installation

  1. Copy source codes from Github or using Composer:
$ composer require dotblue/nextras-migrations-command@~1.0
  1. Register as Configurator's extension:
extensions:
	migrations: DotBlue\Migrations\MigrationsExtension
  1. Set configuration to fit your app:
migrations:
	extensions:
		sql: Nextras\Migrations\Extensions\NetteDbSql
	groups:
		structures: %appDir%/../sql
  1. By default, migrations use Nette\Database to connect to DB.
nette:
	database:
		dsn:
		user:
		password:

symfony/console or kdyby/console?

You can use this extension with plain Symfony Console. But if you use Kdyby Console, command will get registered automatically.

kdyby/events ?

if you use kdyby/events, you can listen to following events:

  • nextras.migrations.success (when migrations finish successfully)
  • nextras.migrations.fail (when migrations finish with exception)
  • nextras.migrations.complete (when migrations finish regardless outcome)

About

Easy setup for nextras/migrations with kdyby/console

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages