feat(database): bump the SQLite image to 3.54.1-v0.2.0

This commit is contained in:
peaklabs-dev
2026-10-30 18:27:16 +01:00
parent a0b56bc42f
commit f780d7429c
9 changed files with 23 additions and 3 deletions
+1 -1
View File
@@ -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();
@@ -0,0 +1,15 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('standalone_sqlites', function (Blueprint $table) {
$table->string('image')->change();
});
}
};
+1 -1
View File
@@ -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,
@@ -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(),
@@ -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(),
@@ -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(),
+1 -1
View File
@@ -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');
});
@@ -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(),
@@ -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(),