armonia-tech/phalcon-migration

此工具提供了一些有用的脚本,帮助您生成代码,从而加快使用Phalcon框架开发更快、更简单的应用程序。

dev-master 2019-05-09 03:23 UTC

This package is auto-updated.

Last update: 2024-09-09 15:00:48 UTC


README

此项目基于 phalcon-devtool 的迁移扩展,以运行旧版本的迁移文件。

安装

composer require armonia-tech/phalcon-migration

用法

生成空迁移文件或从数据库中的表生成迁移文件

./vendors/bin/at-phalcon migration generate --table=users --descr=create_table_users --config={path your migration config file}

运行迁移文件

./vendors/bin/at-phalcon migration run --version=1554705232436351_create_table_users --config={path your migration config file}

回滚迁移文件

./vendors/bin/at-phalcon migration run --version=1554705232436351_create_table_users --config={path your migration config file} --rollback