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
Requires
- contributte/console: >=0.2.0
- nette/di: >=2.4
- robmorgan/phinx: >=0.9.2
This package is not auto-updated.
Last update: 2024-12-17 06:58:14 UTC
README
Small extension to integrate basic commands to contributte/console for Nette Framework.
Requirements
Install
composer require occ2/phinx-nette-bridge
- 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