From 7775a0141becbe1c4c2e788062a4af33aa4e3043 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 1 May 2021 06:53:42 +0200 Subject: [PATCH] Skips pgsql for some reason. --- app/Console/Commands/Correction/FixPostgresSequences.php | 2 ++ app/Console/Commands/Upgrade/UpgradeDatabase.php | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) 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();