armonia-tech / phalcon-migration
This tools provide you useful scripts to generate code helping to develop faster and easy applications that use with Phalcon framework.
dev-master
2019-05-09 03:23 UTC
Requires
- php: >=5.5.0
- phalcon/devtools: ^3.4
This package is auto-updated.
Last update: 2024-11-09 15:25:57 UTC
README
This project extend from phalcon-devtool migration to run older version's migration file.
Installation:
composer require armonia-tech/phalcon-migration
Usage:
To generate a blank migration file or migration file from a table in database:
./vendors/bin/at-phalcon migration generate --table=users --descr=create_table_users --config={path your migration config file}
To run a migration file:
./vendors/bin/at-phalcon migration run --version=1554705232436351_create_table_users --config={path your migration config file}
To rollback a migration file:
./vendors/bin/at-phalcon migration run --version=1554705232436351_create_table_users --config={path your migration config file} --rollback