This commit is contained in:
Manish Verma
2017-01-05 19:09:46 +05:30
parent f2981b7ec3
commit 1b45e5a952
3 changed files with 13 additions and 9 deletions

View File

@@ -108,11 +108,13 @@ class SettingsController extends Controller {
$storage->upload();
}
public function activate() {
public function activate()
{
if (!\Schema::hasColumn('ticket_attachment', 'driver')) {
$path = 'app' . DIRECTORY_SEPARATOR . 'FaveoStorage' . DIRECTORY_SEPARATOR . 'database' . DIRECTORY_SEPARATOR . 'migrations';
$path = 'app'.DIRECTORY_SEPARATOR.'FaveoStorage'.DIRECTORY_SEPARATOR.'database'.DIRECTORY_SEPARATOR.'migrations';
Artisan::call('migrate', [
'--path' => $path,
'--path' => $path,
'--force' => true,
]);
}