1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-25 03:43:33 +01:00

Add Migrate DB button to Tools

This commit is contained in:
FreeScout 2018-11-16 01:38:00 -08:00
parent 4e993a1ebb
commit e3e7d281ef
2 changed files with 9 additions and 0 deletions

View File

@ -186,6 +186,10 @@ class SystemController extends Controller
case 'fetch_emails':
\Artisan::call('freescout:fetch-emails', [], $outputLog);
break;
case 'migrate_db':
\Artisan::call('migrate', ['--force' => true], $outputLog);
break;
}
$output = $outputLog->fetch();

View File

@ -26,6 +26,11 @@
<button type="submit" class="btn btn-default" name="action" value="fetch_emails">
{{ __('Fetch Emails') }}
</button>
&nbsp;
<button type="submit" class="btn btn-default" name="action" value="migrate_db">
{{ __('Migrate DB') }}
</button>
</form>
@if ($output)