PHPackages                             ke/thinkphp-migration - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. ke/thinkphp-migration

ActiveLibrary[Database &amp; ORM](/categories/database)

ke/thinkphp-migration
=====================

database migration tools

1.0.2(6y ago)04412[1 issues](https://github.com/wdaglb/thinkphp-migration/issues)1PHP

Since Jan 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/wdaglb/thinkphp-migration)[ Packagist](https://packagist.org/packages/ke/thinkphp-migration)[ RSS](/packages/ke-thinkphp-migration/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (1)

thinkphp-migration
==================

[](#thinkphp-migration)

**要求ThinkPHP 5.1.**\*

> 本扩展与官方的区别是什么？

*支持最新的phinx扩展,直接composer更新而不是固定死版本*

*为什么不直接使用phinx包?因为使用命令需要vendor\\bin\\phinx,还有配置文件也要自定义,本扩展已支持加载tp的数据库配置*

*由于tp内置的命令行选项是2个-的，所以我们的命令都会成 php think migrate:run --e dev 这样子的选项*

安装
--

[](#安装)

```
composer require ke/thinkphp-migration

```

Config 配置文件
-----------

[](#config-配置文件)

```
