Score
0
Watch 2 Star 4 Fork 0

IT小强xqitw.cn / think-phinxPHPApache-2.0

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
think-phinx 数据库迁移工具 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

Think-Phinx 数据库迁移工具

PHP Version Latest Stable Version Total Downloads Latest Unstable Version License composer.lock available

本扩展在 top-think/think-migration 扩展的基础进行了优化修改。phinx 采用composer引用;并且增加了一个新的功能用于迁移其他composer包自带的迁移文件。

迁移其他composer包中的迁移文件时,需要其他包在composer.json 指定路径, 格式如下

{
  "extra": {
    "itxq-phinx": "database"
  }
}

开源地址:

【GitHub:】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 database
  • seed:create
    Create a new database seeder
  • seed:run
    Run database seeders

Comments ( 0 )

Sign in for post a comment

PHP
1
https://gitee.com/itxq/think-phinx.git
git@gitee.com:itxq/think-phinx.git
itxq
think-phinx
think-phinx
master

Help Search