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:
parent
4e993a1ebb
commit
e3e7d281ef
@ -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();
|
||||
|
@ -26,6 +26,11 @@
|
||||
<button type="submit" class="btn btn-default" name="action" value="fetch_emails">
|
||||
{{ __('Fetch Emails') }}
|
||||
</button>
|
||||
|
||||
|
||||
<button type="submit" class="btn btn-default" name="action" value="migrate_db">
|
||||
{{ __('Migrate DB') }}
|
||||
</button>
|
||||
</form>
|
||||
|
||||
@if ($output)
|
||||
|
Loading…
Reference in New Issue
Block a user