occ2 / phinx-nette-bridge
Phinx extension for migration to nette framework
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/occ2/phinx-nette-bridge
Requires
- contributte/console: >=0.2.0
- nette/di: >=2.4
- robmorgan/phinx: >=0.9.2
This package is not auto-updated.
Last update: 2025-10-07 10:53:19 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