From 70faa4c51070dced504e07b575879299cf48fd3f Mon Sep 17 00:00:00 2001 From: root Date: Thu, 19 Dec 2019 21:54:28 +0800 Subject: [PATCH] update --- app/Console/Commands/V2boardInit.php | 6 +++--- app/Console/Commands/V2boardUpdate.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Console/Commands/V2boardInit.php b/app/Console/Commands/V2boardInit.php index c065c0a3..e394fe5d 100644 --- a/app/Console/Commands/V2boardInit.php +++ b/app/Console/Commands/V2boardInit.php @@ -38,14 +38,14 @@ class V2boardInit extends Command */ public function handle() { - $file = \File::get(base_path() . '/update.sql'); + $file = \File::get(base_path() . '/install.sql'); if (!$file) { - abort(500, '数据库更新文件不存在'); + abort(500, '数据库文件不存在'); } $sql = str_replace("\n", "", $file); $sql = preg_split("/;/", $sql); if (!is_array($sql)) { - abort(500, '数据库更新文件格式有误'); + abort(500, '数据库文件格式有误'); } foreach($sql as $item) { echo 'RUN' . $item . "\r\n"; diff --git a/app/Console/Commands/V2boardUpdate.php b/app/Console/Commands/V2boardUpdate.php index 032abc2d..de84f18c 100644 --- a/app/Console/Commands/V2boardUpdate.php +++ b/app/Console/Commands/V2boardUpdate.php @@ -40,12 +40,12 @@ class V2boardUpdate extends Command { $file = \File::get(base_path() . '/update.sql'); if (!$file) { - abort(500, '数据库更新文件不存在'); + abort(500, '数据库文件不存在'); } $sql = str_replace("\n", "", $file); $sql = preg_split("/;/", $sql); if (!is_array($sql)) { - abort(500, '数据库更新文件格式有误'); + abort(500, '数据库文件格式有误'); } foreach($sql as $item) { echo 'RUN' . $item . "\r\n";