refactor: improve migration command and enhance application model with global scope and status checks

This commit is contained in:
Andras Bacsai
2024-12-11 17:18:32 +01:00
parent 528bfce832
commit 7be3c6f2b7
2 changed files with 21 additions and 14 deletions

View File

@@ -14,7 +14,7 @@ class Migration extends Command
{
if (config('constants.migration.is_migration_enabled')) {
$this->info('Migration is enabled on this server.');
$this->call('migrate --force --isolated');
$this->call('migrate', ['--force' => true, '--isolated' => true]);
exit(0);
} else {
$this->info('Migration is disabled on this server.');