added metadata to UpgradeAppController.php

updated readme with upgrading step to 1.7.11
Frontend build
This commit is contained in:
Peter Papp
2020-10-24 10:39:39 +02:00
parent 15d4ffc349
commit a2ec066c6d
72 changed files with 173 additions and 178 deletions

View File

@@ -171,5 +171,25 @@ class UpgradeAppController extends Controller
echo 'Operation failed.';
}
}
/*
* Upgrade expire_in in shares table
*
* @since v1.7.11
*/
if (! Schema::hasColumn('file_manager_files', 'metadata')) {
$command = Artisan::call('migrate', [
'--force' => true
]);
if ($command === 0) {
echo 'Operation was successful.';
}
if ($command === 1) {
echo 'Operation failed.';
}
}
}
}