occ2/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-12-09 20:38 UTC

This package is not auto-updated.

Last update: 2024-12-17 06:58:14 UTC


README

Downloads this Month License

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

Requirements

Install

  1. composer require occ2/phinx-nette-bridge
  2. Register DI extension
extensions:
    phinx: occ2\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