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/resources/views/livewire/project/database/sqlite/connect-application.blade.php b/resources/views/livewire/project/database/sqlite/connect-application.blade.php index ac1ffb75d4..2969d15e62 100644 --- a/resources/views/livewire/project/database/sqlite/connect-application.blade.php +++ b/resources/views/livewire/project/database/sqlite/connect-application.blade.php @@ -1,7 +1,7 @@ {{-- Rendered inside the General form, so no
here: the button is type=button and Enter is handled explicitly. --}}
+ description="Mount the data volume of this database into an application on the same server. Keep the data in a Docker volume as the database files are writable by every user, so with a bind mount every user on the host can read and change them."> @if ($this->connections->isNotEmpty() || $this->composeConnections->isNotEmpty())
@foreach ($this->connections as $connection) 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(),