https://github.com/hectorqin/thinkphp-migration
ThinkPHP database migration tools
https://github.com/hectorqin/thinkphp-migration
database migration-tool phinx thinkphp
Last synced: 2 months ago
JSON representation
ThinkPHP database migration tools
- Host: GitHub
- URL: https://github.com/hectorqin/thinkphp-migration
- Owner: hectorqin
- Created: 2019-08-02T09:14:09.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-02T09:14:37.000Z (almost 6 years ago)
- Last Synced: 2025-02-09T07:26:41.062Z (4 months ago)
- Topics: database, migration-tool, phinx, thinkphp
- Language: PHP
- Size: 17.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# thinkphp-migration
thinkphp5.1 数据库迁移工具
## 框架要求
ThinkPHP5.1+
## 安装
~~~ bash
composer require hectorqin/thinkphp-migration
~~~## 配置
修改项目根目录下config/migration.php中对应的参数
## 使用
~~~ bash
# 帮助
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 statusseed
seed:create Create a new database seeder
seed:run Run database seeders
~~~## License
Apache-2.0