mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
feat(database): bump the SQLite image to 3.54.1-v0.2.0
This commit is contained in:
@@ -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();
|
||||
|
||||
+15
@@ -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();
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -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(),
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user