json('ports'); }); Schema::dropIfExists('allocations'); Schema::table('servers', function (Blueprint $table) { $table->dropColumn(['allocation_id', 'allocation_limit']); }); } /** * Reverse the migrations. */ public function down(): void { Schema::create('allocations', function (Blueprint $table) { $table->id(); $table->unsignedInteger('node_id'); $table->string('ip'); $table->text('ip_alias'); $table->unsignedMediumInteger('port'); $table->unsignedInteger('server_id'); $table->string('notes')->default(''); $table->timestamps(); $table->unique(['node_id', 'ip', 'port']); }); } };