feat: update ClickHouse migration to use official image version 25.11
This commit is contained in:
parent
6e7ce9d822
commit
2c3a610538
1 changed files with 3 additions and 3 deletions
|
|
@ -28,7 +28,7 @@ public function up(): void
|
||||||
|
|
||||||
// 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 @@ public function up(): void
|
||||||
->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 @@ public function down(): void
|
||||||
});
|
});
|
||||||
|
|
||||||
// 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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue