mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-15 06:09:58 +08:00
Fix update script
This commit is contained in:
parent
4a23b8d858
commit
a790d21ee8
@ -1,7 +1,14 @@
|
||||
<?php
|
||||
|
||||
use Artisan;
|
||||
$msg = [];
|
||||
|
||||
option(['version' => '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']);
|
||||
|
Loading…
Reference in New Issue
Block a user