Think-Phinx 数据库迁移工具
迁移其他composer包中的迁移文件时,需要其他包在composer.json 指定路径, 格式如下
{
"extra": {
"itxq-phinx": "databa
}
}
开源地址:
https://github.com/itxq/think-phinx
https://gitee.com/itxq/think-phinx
扩展安装:
composer require itxq/think-phinx
命令说明
migrate:create
Create a new migration
migrate:rollback
Rollback the last or to a specific migration
migrate:run
Migrate the databa
seed:create
Create a new databa
seed:run
Run databa