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.

1.0 KB
Raw Blame
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('applications', function (Blueprint $table) {
            $table->integer('swarm_replicas')->default(1);
            $table->text('swarm_placement_constraints')->nullable();
        });
        Schema::table('application_settings', function (Blueprint $table) {
            $table->boolean('is_swarm_only_worker_nodes')->default(true);
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('applications', function (Blueprint $table) {
            $table->dropColumn('swarm_replicas');
            $table->dropColumn('swarm_placement_constraints');
        });
        Schema::table('application_settings', function (Blueprint $table) {
            $table->dropColumn('is_swarm_only_worker_nodes');
        });
    }
};