mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
Merge remote-tracking branch 'origin/main' into next
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Until v4.5.0, a HEALTHCHECK in the Dockerfile was used even when the Coolify healthcheck was enabled.
|
||||
* Since v4.5.1 an enabled Coolify healthcheck replaces it. Existing applications with a Dockerfile
|
||||
* HEALTHCHECK get the Coolify healthcheck disabled, so their deployments keep the Dockerfile healthcheck.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
DB::table('applications')
|
||||
->where('custom_healthcheck_found', true)
|
||||
->where('health_check_enabled', true)
|
||||
->update(['health_check_enabled' => false]);
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
// This data migration cannot identify which applications had the Coolify healthcheck enabled.
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user