PHPackages                             lion9966/think-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. lion9966/think-migration

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

lion9966/think-migration
========================

thinkphp6 数据库迁移工具改进版

14PHP

Since Jun 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/lion9966/think-migration)[ Packagist](https://packagist.org/packages/lion9966/think-migration)[ RSS](/packages/lion9966-think-migration/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

think-migration
===============

[](#think-migration)

thinkphp6 数据库迁移工具改进版

在原有的topthink/think-migration原有的基础上增加自动获取对应表的结构，自动获取已存储的数据，从而方便搬家，安装，操作方法一样。

目前只针对mysql数据库，其他数据库可以参考自行增加。

安装
--

[](#安装)

```
composer require lion9966/think-migration

```

使用方法(同topthink/think-migration)
-------------------------------

[](#使用方法同topthinkthink-migration)

```
命令：
#查询命令: php think

#结构 migrate 命令：

migrate:breakpoint                     #Manage breakpoints

migrate:create Model名（首字母大写）     #Create a new migration

migrate:rollback                       #Rollback the last or to a specific migration

migrate:run 或 Model名                  #Migrate the database

migrate:status                         #Show migration status

#数据 seed 命令：

seed:create Model名（首字母大写）         #Create a new database seeder

seed:run 或 Model名                     #Run database seeders

```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/82ed1f9fda64af34257299c2eaa36264ed4605d61ea5becdd77e8e9f1c66b371?d=identicon)[lion9966](/maintainers/lion9966)

---

Top Contributors

[![lion9966](https://avatars.githubusercontent.com/u/67695096?v=4)](https://github.com/lion9966 "lion9966 (5 commits)")

### Embed Badge

![Health badge](/badges/lion9966-think-migration/health.svg)

```
[![Health](https://phpackages.com/badges/lion9966-think-migration/health.svg)](https://phpackages.com/packages/lion9966-think-migration)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
