2016-09-01 21:21:01 -04:00
|
|
|
<?php
|
|
|
|
|
|
2024-10-21 19:18:20 -06:00
|
|
|
use Illuminate\Support\Facades\Schema;
|
2016-09-01 21:21:01 -04:00
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
|
|
|
|
|
class RemoveActiveColumn extends Migration
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Run the migrations.
|
|
|
|
|
*/
|
2024-10-21 19:18:20 -06:00
|
|
|
public function up(): void
|
2016-09-01 21:21:01 -04:00
|
|
|
{
|
|
|
|
|
Schema::table('servers', function (Blueprint $table) {
|
|
|
|
|
$table->dropColumn('active');
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Reverse the migrations.
|
|
|
|
|
*/
|
2024-10-21 19:18:20 -06:00
|
|
|
public function down(): void
|
2016-09-01 21:21:01 -04:00
|
|
|
{
|
|
|
|
|
Schema::table('servers', function (Blueprint $table) {
|
|
|
|
|
$table->tinyInteger('active')->after('name')->unsigned()->default(0);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|