Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/database/migrations/2016_09_01_211924_remove_active_column.php
7460 views
1
<?php
2
3
use Illuminate\Support\Facades\Schema;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Database\Migrations\Migration;
6
7
class RemoveActiveColumn extends Migration
8
{
9
/**
10
* Run the migrations.
11
*/
12
public function up(): void
13
{
14
Schema::table('servers', function (Blueprint $table) {
15
$table->dropColumn('active');
16
});
17
}
18
19
/**
20
* Reverse the migrations.
21
*/
22
public function down(): void
23
{
24
Schema::table('servers', function (Blueprint $table) {
25
$table->tinyInteger('active')->after('name')->unsigned()->default(0);
26
});
27
}
28
}
29
30