banyacz/phinx-nette-bridge

There is no license information available for the latest version (v0.3) of this package.

Phinx extension for migration to nette framework

v0.3 2018-02-06 08:05 UTC

README

Downloads this Month License

Small extension to integrate basic commands to contributte/console for Nette Framework.

Requirements

Install

  1. composer require banyacz/phinx-nette
  2. Register DI extension
extensions:
    phinx: Banyacz\Phinx\DI\PhinxExtension

Configuration

phinx:
    paths:
        migrations: "./db/migrations"
    default_migration_table: phinxlog
    environments:
        development:
            adapter: mysql
            host: 'localhost'
            name: db_name
            user: root
            pass: '123456'
            port: 3306
            charset: utf8
    version_order: creation

Usage

{PATH_TO_CONSOLE} phinx:migrate 
{PATH_TO_CONSOLE} phinx:create 
{PATH_TO_CONSOLE} phinx:rollback 
{PATH_TO_CONSOLE} phinx:status
{PATH_TO_CONSOLE} phinx:breakpoint