Skip to content

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

License

Notifications You must be signed in to change notification settings

huihuangjiuai/thinkphp5.1-migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thinkphp5.1-migration

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

此插件建立的目的是为了兼容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.1 数据库迁移工具

安装

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages