diff --git a/database/update_scripts/update-3.5.0-to-4.0.0.php b/database/update_scripts/update-3.5.0-to-4.0.0.php index 686638ad..1af734a4 100644 --- a/database/update_scripts/update-3.5.0-to-4.0.0.php +++ b/database/update_scripts/update-3.5.0-to-4.0.0.php @@ -1,7 +1,14 @@ '4.0.0']); +try { + Artisan::call('migrate', ['--force' => true]); + $msg[] = '【数据库】升级成功!'; +} catch (Exception $e) { + $msg[] = '【数据库】更新数据表失败,错误信息:'.$e->getMessage(); +} Artisan::call('view:clear'); + +option(['version' => '4.0.0']);