From b6a1e0d12f5f36181501f6d5c53c91163b14e493 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 11 Oct 2017 12:42:31 -0700 Subject: [PATCH] Call migrate before passport install --- app/Http/Controllers/DashboardController.php | 2 +- app/Http/Controllers/SettingsController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/DashboardController.php b/app/Http/Controllers/DashboardController.php index fcf63bf5f4..0fbdcf6c89 100755 --- a/app/Http/Controllers/DashboardController.php +++ b/app/Http/Controllers/DashboardController.php @@ -39,8 +39,8 @@ class DashboardController extends Controller $counts['grand_total'] = $counts['asset'] + $counts['accessory'] + $counts['license'] + $counts['consumable']; if ((!file_exists(storage_path().'/oauth-private.key')) || (!file_exists(storage_path().'/oauth-public.key'))) { - \Artisan::call('passport:install'); \Artisan::call('migrate', ['--force' => true]); + \Artisan::call('passport:install'); } return view('dashboard')->with('asset_stats', $asset_stats)->with('counts', $counts); diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index 3b2441dcc9..b154f6c8c8 100755 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -263,8 +263,8 @@ class SettingsController extends Controller $output = Artisan::output(); if ((!file_exists(storage_path().'/oauth-private.key')) || (!file_exists(storage_path().'/oauth-public.key'))) { - Artisan::call('passport:install'); Artisan::call('migrate', ['--force' => true]); + Artisan::call('passport:install'); }