mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 17:21:04 +00:00
feat: update ClickHouse migration to use official image version 25.11
This commit is contained in:
@@ -28,7 +28,7 @@ return new class extends Migration
|
|||||||
|
|
||||||
// Change the default value for the 'image' column to the official image
|
// Change the default value for the 'image' column to the official image
|
||||||
Schema::table('standalone_clickhouses', function (Blueprint $table) {
|
Schema::table('standalone_clickhouses', function (Blueprint $table) {
|
||||||
$table->string('image')->default('clickhouse/clickhouse-server:latest')->change();
|
$table->string('image')->default('clickhouse/clickhouse-server:25.11')->change();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Update existing ClickHouse instances from Bitnami images to official image
|
// Update existing ClickHouse instances from Bitnami images to official image
|
||||||
@@ -37,7 +37,7 @@ return new class extends Migration
|
|||||||
->orWhere('image', 'like', '%bitnamilegacy/clickhouse%');
|
->orWhere('image', 'like', '%bitnamilegacy/clickhouse%');
|
||||||
})
|
})
|
||||||
->update([
|
->update([
|
||||||
'image' => 'clickhouse/clickhouse-server:latest',
|
'image' => 'clickhouse/clickhouse-server:25.11',
|
||||||
'clickhouse_db' => DB::raw("COALESCE(clickhouse_db, 'default')"),
|
'clickhouse_db' => DB::raw("COALESCE(clickhouse_db, 'default')"),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@ return new class extends Migration
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Revert existing ClickHouse instances back to Bitnami image
|
// Revert existing ClickHouse instances back to Bitnami image
|
||||||
StandaloneClickhouse::where('image', 'clickhouse/clickhouse-server:latest')
|
StandaloneClickhouse::where('image', 'clickhouse/clickhouse-server:25.11')
|
||||||
->update(['image' => 'bitnamilegacy/clickhouse']);
|
->update(['image' => 'bitnamilegacy/clickhouse']);
|
||||||
|
|
||||||
// Revert volume mount paths
|
// Revert volume mount paths
|
||||||
|
|||||||
Reference in New Issue
Block a user