Skip to content

Firefly III: a personal finances manager

Ignore db version in scripts.

James Cole62b9f2785f3a
diff --git a/app/Console/Commands/System/SetsLatestVersion.php b/app/Console/Commands/System/SetsLatestVersion.php
index f6207ee15a..3c6f6b5244 100644
--- a/app/Console/Commands/System/SetsLatestVersion.php
+++ b/app/Console/Commands/System/SetsLatestVersion.php
@@ -25,6 +25,7 @@ declare(strict_types=1);
namespace FireflyIII\Console\Commands\System;
use FireflyIII\Console\Commands\ShowsFriendlyMessages;
+use FireflyIII\Support\Facades\FireflyConfig;
use Illuminate\Console\Command;
class SetsLatestVersion extends Command
@@ -45,8 +46,7 @@ class SetsLatestVersion extends Command
return 0;
}
- app('fireflyconfig')->set('db_version', config('firefly.db_version'));
- app('fireflyconfig')->set('ff3_version', config('firefly.version'));
+ FireflyConfig::set('ff3_version', config('firefly.version'));
$this->friendlyInfo('Updated version.');
return 0;
diff --git a/app/Console/Commands/Upgrade/UpgradesDatabase.php b/app/Console/Commands/Upgrade/UpgradesDatabase.php
index 92429a9a36..c2f6912b5a 100644
--- a/app/Console/Commands/Upgrade/UpgradesDatabase.php
+++ b/app/Console/Commands/Upgrade/UpgradesDatabase.php
@@ -24,6 +24,7 @@ declare(strict_types=1);
namespace FireflyIII\Console\Commands\Upgrade;
+use FireflyIII\Support\Facades\FireflyConfig;
use Illuminate\Support\Facades\Log;
use Safe\Exceptions\InfoException;
@@ -86,10 +87,8 @@ class UpgradesDatabase extends Command
$this->friendlyLine(sprintf('Now executing %s', $command));
$this->call($command, $args);
}
- // set new DB version.
- app('fireflyconfig')->set('db_version', (int) config('firefly.db_version'));
// index will set FF3 version.
- app('fireflyconfig')->set('ff3_version', (string) config('firefly.version'));
+ FireflyConfig::set('ff3_version', (string) config('firefly.version'));
return 0;
}
diff --git a/app/Http/Controllers/DebugController.php b/app/Http/Controllers/DebugController.php
index 377bacd735..9138daf037 100644
--- a/app/Http/Controllers/DebugController.php
+++ b/app/Http/Controllers/DebugController.php
@@ -184,7 +184,6 @@ class DebugController extends Controller
$currentDriver = DB::getDriverName();
return [
- 'db_version' => app('fireflyconfig')->get('db_version', 1)->data,
'php_version' => PHP_VERSION,
'php_os' => PHP_OS,
'uname' => php_uname('m'),
diff --git a/app/Http/Controllers/System/InstallController.php b/app/Http/Controllers/System/InstallController.php
index e2acfb680f..cd800053d4 100644
--- a/app/Http/Controllers/System/InstallController.php
+++ b/app/Http/Controllers/System/InstallController.php
@@ -24,6 +24,7 @@ declare(strict_types=1);
namespace FireflyIII\Http\Controllers\System;
+use FireflyIII\Support\Facades\FireflyConfig;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Cache;
use Exception;
@@ -81,10 +82,7 @@ class InstallController extends Controller
{
app('view')->share('FF_VERSION', config('firefly.version'));
// index will set FF3 version.
- app('fireflyconfig')->set('ff3_version', (string) config('firefly.version'));
-
- // set new DB version.
- app('fireflyconfig')->set('db_version', (int) config('firefly.db_version'));
+ FireflyConfig::set('ff3_version', (string) config('firefly.version'));
return view('install.index');
}
diff --git a/config/firefly.php b/config/firefly.php
index 7b1af7a67a..e4e4f573c1 100644
--- a/config/firefly.php
+++ b/config/firefly.php
@@ -81,7 +81,7 @@ return [
'version' => 'develop/2025-09-29',
'build_time' => 1759116036,
'api_version' => '2.1.0', // field is no longer used.
- 'db_version' => 28,
+ 'db_version' => 28, // field is no longer used.
// generic settings
'maxUploadSize' => 1073741824, // 1 GB
diff --git a/resources/views/partials/debug-table.twig b/resources/views/partials/debug-table.twig
index 6dd268a04e..2e498a162a 100644
--- a/resources/views/partials/debug-table.twig
+++ b/resources/views/partials/debug-table.twig
@@ -12,8 +12,7 @@
{# Firefly III version #}
<tr>
<td>Firefly III</td>
- <td>{% if FF_IS_DEVELOP %}<!-- .Z9JBCmw64Zkx1pQw -->{% endif %}{% if not FF_IS_DEVELOP %}v{% endif %}{{ FF_VERSION }} / <span>#</span>{{ system.db_version }} (expects <span>#</span>{{ config('firefly.db_version') }})
- </td>
+ <td>{% if FF_IS_DEVELOP %}<!-- .Z9JBCmw64Zkx1pQw -->{% endif %}{% if not FF_IS_DEVELOP %}v{% endif %}{{ FF_VERSION }}</td>
</tr>
{# PHP version + settings #}
<tr>