Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

v4.0.0-beta.420.1 (#6069)

Andras Bacsai1ba706e554a8
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index 328e84b9dc..ab8d6d7bb0 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -3010,12 +3010,11 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int
$savedService->image = $image;
$savedService->save();
}
- }
-
- // Pocketbase does not need gzip for SSE.
- if (str($savedService->image)->contains('pocketbase') && $savedService->is_gzip_enabled) {
- $savedService->is_gzip_enabled = false;
- $savedService->save();
+ // Pocketbase does not need gzip for SSE.
+ if (str($savedService->image)->contains('pocketbase') && $savedService->is_gzip_enabled) {
+ $savedService->is_gzip_enabled = false;
+ $savedService->save();
+ }
}
$environment = collect(data_get($service, 'environment', []));
diff --git a/config/constants.php b/config/constants.php
index 78d77d78e0..2ab7596ff9 100644
--- a/config/constants.php
+++ b/config/constants.php
@@ -2,7 +2,7 @@
return [
'coolify' => [
- 'version' => '4.0.0-beta.420',
+ 'version' => '4.0.0-beta.420.1',
'helper_version' => '1.0.8',
'realtime_version' => '1.0.9',
'self_hosted' => env('SELF_HOSTED', true),
diff --git a/database/migrations/2025_06_26_131350_optimize_activity_log_indexes.php b/database/migrations/2025_06_26_131350_optimize_activity_log_indexes.php
new file mode 100644
index 0000000000..6ffe97c07f
--- /dev/null
+++ b/database/migrations/2025_06_26_131350_optimize_activity_log_indexes.php
@@ -0,0 +1,38 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Log;
+
+return new class extends Migration
+{
+ /**
+ * Run the migrations.
+ */
+ public function up(): void
+ {
+ try {
+ // Add specific index for type_uuid queries with ordering
+ DB::statement('CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_activity_type_uuid_created_at ON activity_log ((properties->>\'type_uuid\'), created_at DESC)');
+
+ // Add specific index for status queries on properties
+ DB::statement('CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_activity_properties_status ON activity_log ((properties->>\'status\'))');
+
+ } catch (\Exception $e) {
+ Log::error('Error adding optimized indexes to activity_log: '.$e->getMessage());
+ }
+ }
+
+ /**
+ * Reverse the migrations.
+ */
+ public function down(): void
+ {
+ try {
+ DB::statement('DROP INDEX CONCURRENTLY IF EXISTS idx_activity_type_uuid_created_at');
+ DB::statement('DROP INDEX CONCURRENTLY IF EXISTS idx_activity_properties_status');
+ } catch (\Exception $e) {
+ Log::error('Error dropping optimized indexes from activity_log: '.$e->getMessage());
+ }
+ }
+};
diff --git a/versions.json b/versions.json
index 9fde1e53b7..57f82e93d7 100644
--- a/versions.json
+++ b/versions.json
@@ -1,7 +1,7 @@
{
"coolify": {
"v4": {
- "version": "4.0.0-beta.420"
+ "version": "4.0.0-beta.420.1"
},
"nightly": {
"version": "4.0.0-beta.421"