Skips pgsql for some reason.

This commit is contained in:
James Cole 2021-05-01 06:53:42 +02:00
parent 831272d971
commit 7775a0141b
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
2 changed files with 2 additions and 1 deletions

View File

@ -30,11 +30,13 @@ class FixPostgresSequences extends Command
*/ */
public function handle(): int public function handle(): int
{ {
if (DB::connection()->getName() !== 'pgsql') { if (DB::connection()->getName() !== 'pgsql') {
$this->info('Command executed successfully.'); $this->info('Command executed successfully.');
return 0; return 0;
} }
$this->line('Going to verify PostgreSQL table sequences.');
$tablesToCheck = [ $tablesToCheck = [
'2fa_tokens', '2fa_tokens',
'account_meta', 'account_meta',

View File

@ -130,7 +130,6 @@ class UpgradeDatabase extends Command
$result = Artisan::output(); $result = Artisan::output();
echo $result; echo $result;
// artisan firefly-iii:fix-pgsql-sequences
$this->line('Fix PostgreSQL sequences.'); $this->line('Fix PostgreSQL sequences.');
Artisan::call('firefly-iii:fix-pgsql-sequences'); Artisan::call('firefly-iii:fix-pgsql-sequences');
$result = Artisan::output(); $result = Artisan::output();