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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(migrations): guard uuid column addition and filter teamless servers
Andras Bacsaia5b3d3a53638
diff --git a/database/migrations/2025_12_24_133707_add_predefined_server_variables_to_existing_servers.php b/database/migrations/2025_12_24_133707_add_predefined_server_variables_to_existing_servers.phpindex c67987e67f..77fcf96a19 100644--- a/database/migrations/2025_12_24_133707_add_predefined_server_variables_to_existing_servers.php+++ b/database/migrations/2025_12_24_133707_add_predefined_server_variables_to_existing_servers.php@@ -11,7 +11,7 @@ return new class extends Migration*/public function up(): void{- Server::query()->chunk(100, function ($servers) {+ Server::query()->whereHas('team')->chunk(100, function ($servers) {foreach ($servers as $server) {$existingKeys = SharedEnvironmentVariable::where('type', 'server')->where('server_id', $server->id)diff --git a/database/migrations/2026_03_23_101720_add_uuid_to_local_persistent_volumes_table.php b/database/migrations/2026_03_23_101720_add_uuid_to_local_persistent_volumes_table.phpindex 6b4fb690db..ab279c5927 100644--- a/database/migrations/2026_03_23_101720_add_uuid_to_local_persistent_volumes_table.php+++ b/database/migrations/2026_03_23_101720_add_uuid_to_local_persistent_volumes_table.php@@ -10,14 +10,15 @@ return new class extends Migration{public function up(): void{- Schema::table('local_persistent_volumes', function (Blueprint $table) {- $table->string('uuid')->nullable()->after('id');- });+ if (! Schema::hasColumn('local_persistent_volumes', 'uuid')) {+ Schema::table('local_persistent_volumes', function (Blueprint $table) {+ $table->string('uuid')->nullable()->after('id');+ });+ }DB::table('local_persistent_volumes')->whereNull('uuid')- ->orderBy('id')- ->chunk(1000, function ($volumes) {+ ->chunkById(1000, function ($volumes) {foreach ($volumes as $volume) {DB::table('local_persistent_volumes')->where('id', $volume->id)