mirror of
https://github.com/v2board/v2board.git
synced 2025-02-25 06:40:26 +08:00
update
This commit is contained in:
parent
d32fccbff8
commit
c7f560551c
@ -38,6 +38,9 @@ class V2boardInit extends Command
|
|||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
|
\Artisan::call('key:generate');
|
||||||
|
\Artisan::call('config:cache');
|
||||||
|
DB::connection()->getPdo();
|
||||||
$file = \File::get(base_path() . '/install.sql');
|
$file = \File::get(base_path() . '/install.sql');
|
||||||
if (!$file) {
|
if (!$file) {
|
||||||
abort(500, '数据库文件不存在');
|
abort(500, '数据库文件不存在');
|
||||||
|
@ -38,6 +38,8 @@ class V2boardUpdate extends Command
|
|||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
|
\Artisan::call('config:cache');
|
||||||
|
DB::connection()->getPdo();
|
||||||
$file = \File::get(base_path() . '/update.sql');
|
$file = \File::get(base_path() . '/update.sql');
|
||||||
if (!$file) {
|
if (!$file) {
|
||||||
abort(500, '数据库文件不存在');
|
abort(500, '数据库文件不存在');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user