PHPackages                             wjcms/tp-phinx - 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. wjcms/tp-phinx

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

wjcms/tp-phinx
==============

Phinx integration for thinkphp

1.0.1(1y ago)00MITPHPPHP ^7.4|^8.0

Since Apr 1Pushed 5mo agoCompare

[ Source](https://github.com/wjcms/tp-phinx)[ Packagist](https://packagist.org/packages/wjcms/tp-phinx)[ RSS](/packages/wjcms-tp-phinx/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (10)Versions (2)Used By (0)

Think-Phinx
===========

[](#think-phinx)

thinkphp 6.0, 8.0 phinx 数据迁移

[![Latest Stable Version](https://camo.githubusercontent.com/935f569d9c884acee9ec57c57f4d7fbc2834bf868063612a9e8624c02a85e805/68747470733a2f2f706f7365722e707567782e6f72672f6e687a65782f7468696e6b2d7068696e782f762f737461626c65)](https://packagist.org/packages/nhzex/think-phinx)[![License](https://camo.githubusercontent.com/eabc730aa0e2391f1af4a4610136ddc29f83a7b91ffec4c7a875bbf62a402fa3/68747470733a2f2f706f7365722e707567782e6f72672f6e687a65782f7468696e6b2d7068696e782f6c6963656e7365)](https://packagist.org/packages/nhzex/think-phinx)[![workflows](https://github.com/nhzex/think-phinx/workflows/ci/badge.svg)](https://github.com/NHZEX/think-phinx/actions)[![coverage](https://camo.githubusercontent.com/28a769216bd52e8c65a9608e006de7725e2d6983105489f97b0d8189996be547/68747470733a2f2f636f6465636f762e696f2f67682f6e687a65782f7468696e6b2d7068696e782f67726170682f62616467652e737667)](https://codecov.io/gh/nhzex/think-phinx)

Installation
------------

[](#installation)

composer require nhzex/think-phinx

重大变更
----

[](#重大变更)

> 自 4.0 起采用捆绑方式打包 phinx，不再污染全局环境，并内置 cakephp 依赖项，解决全局函数被污染问题！
>
> 目前版本的`phinx`将导致`env`函数被覆盖。如果使用到该函数，请在`composer`加载前重新声明。([phinx#1647](https://github.com/cakephp/phinx/issues/1647))

版本phinx状态v4.0.\*0.13.4已发布v4.1.\*0.14.0RCUse
---

[](#use)

```
 migrate
  migrate:breakpoint  Manage breakpoints
  migrate:create      Create a new migration
  migrate:rollback    Rollback the last or to a specific migration
  migrate:run         Migrate the database
  migrate:status      Show migration status
  migrate:test        Verify the configuration file
 seed
  seed:create         Create a new database seeder
  seed:run            Run database seeders

```

Config
------

[](#config)

请确保配置文件中指定的目录存在且可读

```
