From f780d7429c888eb3848e38f4c6c68186e82c1f1c Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Fri, 30 Oct 2026 18:16:47 +0100 Subject: [PATCH] feat(database): bump the SQLite image to 3.54.1-v0.2.0 --- bootstrap/helpers/databases.php | 2 +- ...mage_default_from_standalone_sqlites_table.php | 15 +++++++++++++++ tests/Feature/ModelFillableCreationTest.php | 2 +- tests/Feature/MultiServerApplicationTest.php | 1 + .../SqliteConnectApplicationResourceTeamTest.php | 1 + tests/Feature/SqliteConnectApplicationTest.php | 1 + tests/Feature/StandaloneSqliteTest.php | 2 +- tests/Feature/StorageAndServiceAuditTest.php | 1 + .../ServerTransferExporterImporterTest.php | 1 + 9 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 database/migrations/2026_10_30_171359_drop_image_default_from_standalone_sqlites_table.php diff --git a/bootstrap/helpers/databases.php b/bootstrap/helpers/databases.php index 78632b762e..dba148933f 100644 --- a/bootstrap/helpers/databases.php +++ b/bootstrap/helpers/databases.php @@ -190,7 +190,7 @@ function create_standalone_sqlite($environment_id, StandaloneDocker|SwarmDocker $database = new StandaloneSqlite; $database->uuid = new_public_id(); $database->name = 'sqlite-database-'.$database->uuid; - $database->image = 'peakimages/sqlite:3.53.4-v0.1.0'; + $database->image = 'peakimages/sqlite:3.54.1-v0.2.0'; $database->environment_id = $environment_id; $database->destination_id = $destination->id; $database->destination_type = $destination->getMorphClass(); diff --git a/database/migrations/2026_10_30_171359_drop_image_default_from_standalone_sqlites_table.php b/database/migrations/2026_10_30_171359_drop_image_default_from_standalone_sqlites_table.php new file mode 100644 index 0000000000..5d1ad7b5fd --- /dev/null +++ b/database/migrations/2026_10_30_171359_drop_image_default_from_standalone_sqlites_table.php @@ -0,0 +1,15 @@ +string('image')->change(); + }); + } +}; diff --git a/tests/Feature/ModelFillableCreationTest.php b/tests/Feature/ModelFillableCreationTest.php index 2590d44c71..9c71382e25 100644 --- a/tests/Feature/ModelFillableCreationTest.php +++ b/tests/Feature/ModelFillableCreationTest.php @@ -849,7 +849,7 @@ it('creates StandaloneSqlite with all fillable attributes', function () { 'is_log_drain_enabled' => false, 'is_include_timestamps' => false, 'status' => 'running', - 'image' => 'peakimages/sqlite:3.53.4-v0.1.0', + 'image' => 'peakimages/sqlite:3.54.1-v0.2.0', 'limits_memory' => '1g', 'limits_memory_swap' => '2g', 'limits_memory_swappiness' => 30, diff --git a/tests/Feature/MultiServerApplicationTest.php b/tests/Feature/MultiServerApplicationTest.php index 8f47010ac3..12ded0d222 100644 --- a/tests/Feature/MultiServerApplicationTest.php +++ b/tests/Feature/MultiServerApplicationTest.php @@ -619,6 +619,7 @@ describe('adding a volume to an application with additional servers', function ( test('connecting a SQLite database rejects the volume', function () { $sqlite = StandaloneSqlite::create([ 'name' => 'app-sqlite', + 'image' => 'peakimages/sqlite:3.54.1-v0.2.0', 'environment_id' => $this->application->environment_id, 'destination_id' => $this->mainDestination->id, 'destination_type' => $this->mainDestination->getMorphClass(), diff --git a/tests/Feature/SqliteConnectApplicationResourceTeamTest.php b/tests/Feature/SqliteConnectApplicationResourceTeamTest.php index c30cdbc597..ec19233810 100644 --- a/tests/Feature/SqliteConnectApplicationResourceTeamTest.php +++ b/tests/Feature/SqliteConnectApplicationResourceTeamTest.php @@ -37,6 +37,7 @@ beforeEach(function () { $this->sqlite = StandaloneSqlite::create([ 'name' => 'app-sqlite', + 'image' => 'peakimages/sqlite:3.54.1-v0.2.0', 'environment_id' => sqliteResourceTeamEnvironment($this->resourceTeam)->id, 'destination_id' => $this->destination->id, 'destination_type' => $this->destination->getMorphClass(), diff --git a/tests/Feature/SqliteConnectApplicationTest.php b/tests/Feature/SqliteConnectApplicationTest.php index 3cdfd40de0..26dec9da19 100644 --- a/tests/Feature/SqliteConnectApplicationTest.php +++ b/tests/Feature/SqliteConnectApplicationTest.php @@ -63,6 +63,7 @@ beforeEach(function () { $this->sqlite = StandaloneSqlite::create([ 'name' => 'app-sqlite', + 'image' => 'peakimages/sqlite:3.54.1-v0.2.0', 'environment_id' => $this->environment->id, 'destination_id' => $this->destination->id, 'destination_type' => $this->destination->getMorphClass(), diff --git a/tests/Feature/StandaloneSqliteTest.php b/tests/Feature/StandaloneSqliteTest.php index db0baa3286..15c47f9344 100644 --- a/tests/Feature/StandaloneSqliteTest.php +++ b/tests/Feature/StandaloneSqliteTest.php @@ -40,7 +40,7 @@ function sqliteApiHeaders(): array } it('creates the data volume and restores into the first configured file', function () { - expect($this->database->image)->toBe('peakimages/sqlite:3.53.4-v0.1.0') + expect($this->database->image)->toBe('peakimages/sqlite:3.54.1-v0.2.0') ->and($this->database->databaseFilePath())->toBe('/var/lib/sqlite/app.db') ->and($this->database->persistentStorages()->first()->mount_path)->toBe('/var/lib/sqlite'); }); diff --git a/tests/Feature/StorageAndServiceAuditTest.php b/tests/Feature/StorageAndServiceAuditTest.php index 63fbfbc086..57a56b94b0 100644 --- a/tests/Feature/StorageAndServiceAuditTest.php +++ b/tests/Feature/StorageAndServiceAuditTest.php @@ -298,6 +298,7 @@ test('connecting and unlinking a sqlite volume records application storage event $this->server->settings()->update(['is_reachable' => true, 'is_usable' => true]); $sqlite = StandaloneSqlite::create([ 'name' => 'app-sqlite', + 'image' => 'peakimages/sqlite:3.54.1-v0.2.0', 'environment_id' => $this->environment->id, 'destination_id' => $this->destination->id, 'destination_type' => $this->destination->getMorphClass(), diff --git a/tests/Unit/ServerTransfer/ServerTransferExporterImporterTest.php b/tests/Unit/ServerTransfer/ServerTransferExporterImporterTest.php index eafb3212ff..34e5e03606 100644 --- a/tests/Unit/ServerTransfer/ServerTransferExporterImporterTest.php +++ b/tests/Unit/ServerTransfer/ServerTransferExporterImporterTest.php @@ -1219,6 +1219,7 @@ test('transfer keeps whether a volume ignores the Compose driver options', funct test('transfer keeps the link between an application volume and its sqlite database', function () { $sqlite = StandaloneSqlite::create([ 'name' => 'app-sqlite', + 'image' => 'peakimages/sqlite:3.54.1-v0.2.0', 'environment_id' => $this->environment->id, 'destination_id' => $this->destination->id, 'destination_type' => $this->destination->getMorphClass(),