forked from pterodactyl/panel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2016_01_23_201748_add_servers.php
More file actions
50 lines (47 loc) · 1.54 KB
/
2016_01_23_201748_add_servers.php
File metadata and controls
50 lines (47 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddServers extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('servers', function (Blueprint $table) {
$table->increments('id');
$table->char('uuid', 36)->unique();
$table->char('uuidShort', 8)->unique();
$table->mediumInteger('node')->unsigned();
$table->string('name');
$table->tinyInteger('active')->unsigned();
$table->mediumInteger('owner')->unsigned();
$table->integer('memory')->unsigned();
$table->integer('swap')->unsigned();
$table->integer('disk')->unsigned();
$table->integer('io')->unsigned();
$table->integer('cpu')->unsigned();
$table->tinyInteger('oom_disabled')->unsigned()->default(0);
$table->string('ip');
$table->integer('port')->unsigned();
$table->mediumInteger('service')->unsigned();
$table->mediumInteger('option')->unsigned();
$table->text('startup');
$table->char('daemonSecret', 36)->unique();
$table->string('username')->unique();
$table->tinyInteger('installed')->unsigned()->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('servers');
}
}