<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class RemoveActiveColumn extends Migration
{
public function up(): void
{
Schema::table('servers', function (Blueprint $table) {
$table->dropColumn('active');
});
}
public function down(): void
{
Schema::table('servers', function (Blueprint $table) {
$table->tinyInteger('active')->after('name')->unsigned()->default(0);
});
}
}