Skip to content

thinkphp官方的migration1.1.1版本不维护了,但是公司项目框架式5.0.24,只能使用1系列,自己维护一下。

License

Notifications You must be signed in to change notification settings

huihuangjiuai/thinkphp5.0-migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

此插件的项目环境为php8.0 thinkphp5.0.24 原项目为 thinkphp-migration:1.1.1

此插件建立的目的是为了兼容php8版本的环境,php8环境下变量类型要求严格,之前很多模棱两可的函数用法会出现错误,比如 原插件的Phinx/Util/Util.php文件 $fileName = static::getCurrentTimestamp() . '' . strtolower(implode( $arr,'')) . '.php'; 此行代码的implode($arr,'')函数,在php8环境中会出现错误, Type error: implode(): Argument #2 ($array) must be of type ?array, string given
应该这么用,implode('
',$arr)。具体原因请自行查看php官方文档。

thinkphp5.0 数据库迁移工具

安装

composer require huihuangjiuai/thinkphp5.0-migration
用法和官方的thinkphp-migration:1.1.1一样一样的

About

thinkphp官方的migration1.1.1版本不维护了,但是公司项目框架式5.0.24,只能使用1系列,自己维护一下。

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages