- upgrade controller to v1.8

This commit is contained in:
Peter Papp
2020-12-21 20:50:56 +01:00
parent 7379d17a40
commit e60bbb369a

View File

@@ -152,6 +152,26 @@ class UpgradeAppController extends Controller
*/
public function upgrade_database()
{
/*
* Upgrade expire_in in shares table
*
* @since v1.8
*/
if (! Schema::hasTable('traffic') && ! Schema::hasTable('zips') && ! Schema::hasTable('jobs')) {
$command = Artisan::call('migrate', [
'--force' => true
]);
if ($command === 0) {
echo 'Operation was successful.';
}
if ($command === 1) {
echo 'Operation failed.';
}
}
/*
* Upgrade expire_in in shares table
*