mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-09 18:19: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');
|
$migrations = plugin_path($plugin->id, 'database', 'migrations');
|
||||||
if (file_exists($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) {
|
if (!$success) {
|
||||||
throw new Exception("Could not run migrations for plugin '{$plugin->id}'");
|
throw new Exception("Could not run migrations for plugin '{$plugin->id}'");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user