Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/database/migrations/2016_01_23_195641_add_allocations_table.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 AddAllocationsTable extends Migration
8
{
9
/**
10
* Run the migrations.
11
*/
12
public function up(): void
13
{
14
Schema::create('allocations', function (Blueprint $table) {
15
$table->increments('id');
16
$table->mediumInteger('node')->unsigned();
17
$table->string('ip');
18
$table->mediumInteger('port')->unsigned();
19
$table->mediumInteger('assigned_to')->unsigned()->nullable();
20
$table->timestamps();
21
});
22
}
23
24
/**
25
* Reverse the migrations.
26
*/
27
public function down(): void
28
{
29
Schema::dropIfExists('allocations');
30
}
31
}
32
33