diff --git a/app/Console/Commands/Correction/FixPostgresSequences.php b/app/Console/Commands/Correction/FixPostgresSequences.php index 66720e4ed3..7c3d19fa42 100644 --- a/app/Console/Commands/Correction/FixPostgresSequences.php +++ b/app/Console/Commands/Correction/FixPostgresSequences.php @@ -30,11 +30,13 @@ class FixPostgresSequences extends Command */ public function handle(): int { + if (DB::connection()->getName() !== 'pgsql') { $this->info('Command executed successfully.'); return 0; } + $this->line('Going to verify PostgreSQL table sequences.'); $tablesToCheck = [ '2fa_tokens', 'account_meta', diff --git a/app/Console/Commands/Upgrade/UpgradeDatabase.php b/app/Console/Commands/Upgrade/UpgradeDatabase.php index 3870c6597a..9f0055a5fe 100644 --- a/app/Console/Commands/Upgrade/UpgradeDatabase.php +++ b/app/Console/Commands/Upgrade/UpgradeDatabase.php @@ -130,7 +130,6 @@ class UpgradeDatabase extends Command $result = Artisan::output(); echo $result; - // artisan firefly-iii:fix-pgsql-sequences $this->line('Fix PostgreSQL sequences.'); Artisan::call('firefly-iii:fix-pgsql-sequences'); $result = Artisan::output();