JaguarJack/migration-generator

[BUG] \JaguarJack\MigrateGenerator\Migration\Columns\Thinkphp\DateTimeType not found

Closed this issue · 2 comments

PHP 7.4
存在的类型也报错

app_category table migration file generated
\JaguarJack\MigrateGenerator\Migration\Columns\Thinkphp\DateTimeType not found

PHP 7.4
MYSQL 5.7.31

created_at datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
updated_at datetime DEFAULT NULL COMMENT '更新时间',
deleted_at datetime DEFAULT NULL COMMENT '删除时间',

找到原因了........

大小写问题
cat vendor/jaguarjack/migration-generator/src/Migration/Columns/Thinkphp/DateTimeType.php
这个文件名称
Datetime 是小写

class DatetimeType 也是小写
引用的找的是
\JaguarJack\MigrateGenerator\Migration\Columns\Thinkphp\DateTimeType not found

改下吧