ke / thinkphp-beautiful-migrate
一个易于使用、美观的数据库迁移代码构建器
1.0.2
2023-01-04 09:15 UTC
Requires
- topthink/framework: ^6.0.0
- topthink/think-migration: ^3.0
Requires (Dev)
- phpunit/phpunit: 9.0
- topthink/think: ^6.0.0
This package is auto-updated.
Last update: 2024-09-04 13:23:31 UTC
README
一个易于使用、美观的数据库迁移代码构建器
- 支持Thinkphp6.0.x
安装
composer require ke/thinkphp-beautiful-migrate
使用
// 创建表
Schema::create($this->getAdapter(), '表名', function (Blueprint $blueprint) {
// 迁移代码
});
// 修改表
Schema::table($this->getAdapter(), '表名', function (Blueprint $blueprint) {
// 迁移代码
});
可用的字段定义方法
QQ交流群:942503490
作者:King east