55 * 版权所有 2017-2028 FunAdmin,并保留所有权利。
66 * 网站地址: https://www.FunAdmin.com
77 * ----------------------------------------------------------------------------
8- * 采用最新Thinkphp6实现
8+ * 采用最新Thinkphp8实现
99 * ============================================================================
1010 * Author: yuege
1111 * Date: 2020/9/21
@@ -30,7 +30,7 @@ class Install extends Command
3030 //sql 文件
3131 protected $ sqlFile = '' ;
3232 //mysql版本
33- protected $ mysqlVersion = '5.6 ' ;
33+ protected $ mysqlVersion = '5.7 ' ;
3434 //database模板
3535 protected $ databaseTpl = '' ;
3636
@@ -160,10 +160,11 @@ protected function install($input): void{
160160 $ db ["username " ] = $ env ['DATABASE ' ]['USERNAME ' ] ;
161161 $ db ["password " ] = $ env ['DATABASE ' ]['PASSWORD ' ] ;
162162 }
163+ $ prefix = env ('DB_PREFIX ' );
163164 $ db ["host " ] = strtolower ($ this ->output ->ask ($ this ->input , '👉 Set mysql hostname default(127.0.01) ' ))?:$ db ["host " ];
164165 $ db ["port " ] = strtolower ($ this ->output ->ask ($ this ->input , '👉 Set mysql hostport default (3306) ' ))?:$ db ["port " ] ;
165166 $ db ['database ' ] = strtolower ($ this ->output ->ask ($ this ->input , '👉 Set mysql database default (funadmin) ' ))?:$ db ["database " ];
166- $ db ['prefix ' ] = strtolower ($ this ->output ->ask ($ this ->input , ' 👉 Set mysql table prefix default (fun_) ' ))?:$ db ["prefix " ];
167+ $ db ['prefix ' ] = strtolower ($ this ->output ->ask ($ this ->input , " 👉 Set mysql table prefix default( $ prefix ) " ))?:$ db ["prefix " ];
167168 $ db ["charset " ] = strtolower ($ this ->output ->ask ($ this ->input , '👉 Set mysql table charset default (utf8mb4) ' ))?:$ db ["charset " ];
168169 $ db ['username ' ] = strtolower ($ this ->output ->ask ($ this ->input , '👉 Set mysql username default (root) ' ))?:$ db ["username " ];
169170 $ db ['password ' ] = strtolower ($ this ->output ->ask ($ this ->input , '👉 Set mysql password required ' ))?: $ db ["password " ];
0 commit comments