Skip to content

Firefly III: a personal finances manager

Add more info.

James Cole8ffe08bfb9fe
diff --git a/app/Console/Commands/Correction/FixPostgresSequences.php b/app/Console/Commands/Correction/FixPostgresSequences.php
index 0496b81f2e..694aa962cc 100644
--- a/app/Console/Commands/Correction/FixPostgresSequences.php
+++ b/app/Console/Commands/Correction/FixPostgresSequences.php
@@ -105,7 +105,7 @@ class FixPostgresSequences extends Command
$highestId = DB::table($tableToCheck)->select(DB::raw('MAX(id)'))->first();
$nextId = DB::table($tableToCheck)->select(DB::raw(sprintf('nextval(\'%s_id_seq\')', $tableToCheck)))->first();
if(null === $nextId) {
- $this->line(sprintf('nextval is NULL for table "%s"', $tableToCheck));
+ $this->line(sprintf('nextval is NULL for table "%s", go to next table.', $tableToCheck));
continue;
}
@@ -120,6 +120,9 @@ class FixPostgresSequences extends Command
$this->warn(sprintf('Arff! The nextval sequence is still all screwed up on table "%s".', $tableToCheck));
}
}
+ if ($nextId->nextval >= $highestId->max) {
+ $this->info(sprintf('Table "%s" autoincrement is correct.', $tableToCheck));
+ }
}