ke/thinkphp-beautiful-migrate

一个易于使用、美观的数据库迁移代码构建器

1.0.2 2023-01-04 09:15 UTC

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