mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-08-17 16:35:20 -05:00
🤖 Auto commit for release 'v6.6.1' on 2026-04-19
This commit is contained in:
@@ -36,7 +36,7 @@ class RepairsPostgresSequences extends Command
|
||||
|
||||
protected $description = 'Fixes issues with PostgreSQL sequences.';
|
||||
|
||||
protected $signature = 'upgrade:600-pgsql-sequences';
|
||||
protected $signature = 'upgrade:600-pgsql-sequences';
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
@@ -110,10 +110,15 @@ class RepairsPostgresSequences extends Command
|
||||
$highestId = DB::table($tableToCheck)->select(DB::raw('MAX(id)'))->first();
|
||||
} catch (QueryException $e) {
|
||||
Log::warning(sprintf('Could not select max, but will ignore this: %s', $e->getMessage()));
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
try {
|
||||
$nextId = DB::table($tableToCheck)->select(DB::raw(sprintf('nextval(\'%s_id_seq\')', $tableToCheck)))->first();
|
||||
$nextId = DB::table($tableToCheck)
|
||||
->select(DB::raw(sprintf('nextval(\'%s_id_seq\')', $tableToCheck)))
|
||||
->first()
|
||||
;
|
||||
} catch (QueryException $e) {
|
||||
Log::warning(sprintf('Could not get nextval, but will ignore this: %s', $e->getMessage()));
|
||||
$nextId = null;
|
||||
@@ -128,8 +133,9 @@ class RepairsPostgresSequences extends Command
|
||||
DB::select(sprintf('SELECT setval(\'%s_id_seq\', %d)', $tableToCheck, $highestId->max));
|
||||
$highestId = DB::table($tableToCheck)->select(DB::raw('MAX(id)'))->first();
|
||||
$nextId = DB::table($tableToCheck)
|
||||
->select(DB::raw(sprintf('nextval(\'%s_id_seq\')', $tableToCheck)))
|
||||
->first();
|
||||
->select(DB::raw(sprintf('nextval(\'%s_id_seq\')', $tableToCheck)))
|
||||
->first()
|
||||
;
|
||||
if ($nextId->nextval > $highestId->max) {
|
||||
$this->friendlyInfo(sprintf('Table "%s" autoincrement corrected.', $tableToCheck));
|
||||
}
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
- [Issue 12081](https://github.com/firefly-iii/firefly-iii/issues/12081) (Discord changes webhook domain) reported by @MinDBreaK
|
||||
- [Issue 12083](https://github.com/firefly-iii/firefly-iii/issues/12083) (Hide or remove the Ntfy fields if they dont work.) reported by @OrakMoya
|
||||
- [Issue 12107](https://github.com/firefly-iii/firefly-iii/issues/12107) (Exception sending test email notification) reported by @antrv
|
||||
- #12154
|
||||
- [Issue 12154](https://github.com/firefly-iii/firefly-iii/issues/12154) (Error on artisan firefly-iii:upgrade-database v6.6.0) reported by @Tealk
|
||||
|
||||
## v6.6.0 - 2026-04-19
|
||||
|
||||
|
||||
+2
-2
@@ -78,8 +78,8 @@ return [
|
||||
'running_balance_column' => (bool)envDefaultWhenEmpty(env('USE_RUNNING_BALANCE'), true), // this is only the default value, is not used.
|
||||
// see cer.php for exchange rates feature flag.
|
||||
],
|
||||
'version' => '6.6.0',
|
||||
'build_time' => 1776585580,
|
||||
'version' => '6.6.1',
|
||||
'build_time' => 1776590142,
|
||||
'api_version' => '2.1.0', // field is no longer used.
|
||||
'db_version' => 28, // field is no longer used.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user