Statistics
28
0
1
6d
Badges
Dependencies

Phinx bridge to Nette DI

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  

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com