mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-08 10:39:27 +01:00
Use --realpath to run plugin migrations
This commit is contained in:
parent
aa8bbaf928
commit
b5736e89f4
@ -180,7 +180,7 @@ class PluginService
|
||||
{
|
||||
$migrations = plugin_path($plugin->id, 'database', 'migrations');
|
||||
if (file_exists($migrations)) {
|
||||
$success = Artisan::call('migrate', ['--path' => $migrations, '--force' => true]) === 0;
|
||||
$success = Artisan::call('migrate', ['--realpath' => true, '--path' => $migrations, '--force' => true]) === 0;
|
||||
|
||||
if (!$success) {
|
||||
throw new Exception("Could not run migrations for plugin '{$plugin->id}'");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user