diff --git a/app/Console/Commands/V2boardInstall.php b/app/Console/Commands/V2boardInstall.php index f5777be9..d1e8613b 100644 --- a/app/Console/Commands/V2boardInstall.php +++ b/app/Console/Commands/V2boardInstall.php @@ -47,7 +47,7 @@ class V2boardInstall extends Command sleep(2); \Artisan::call('config:cache'); DB::connection()->getPdo(); - $file = \File::get(base_path() . '/install.sql'); + $file = \File::get(base_path() . '/database/install.sql'); if (!$file) { abort(500, '数据库文件不存在'); } diff --git a/app/Console/Commands/V2boardUpdate.php b/app/Console/Commands/V2boardUpdate.php index c8a4091a..9160a8dc 100644 --- a/app/Console/Commands/V2boardUpdate.php +++ b/app/Console/Commands/V2boardUpdate.php @@ -40,7 +40,7 @@ class V2boardUpdate extends Command { \Artisan::call('config:cache'); DB::connection()->getPdo(); - $file = \File::get(base_path() . '/update.sql'); + $file = \File::get(base_path() . '/database/update.sql'); if (!$file) { abort(500, '数据库文件不存在'); } diff --git a/install.sql b/database/install.sql similarity index 100% rename from install.sql rename to database/install.sql diff --git a/update.sql b/database/update.sql similarity index 100% rename from update.sql rename to database/update.sql