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