forked from pterodactyl/panel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2016_01_23_200648_add_nodes.php
More file actions
39 lines (36 loc) · 1.24 KB
/
2016_01_23_200648_add_nodes.php
File metadata and controls
39 lines (36 loc) · 1.24 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
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddNodes extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::create('nodes', function (Blueprint $table) {
$table->increments('id');
$table->smallInteger('public')->unsigned();
$table->string('name');
$table->mediumInteger('location')->unsigned();
$table->string('fqdn');
$table->string('scheme')->default('https');
$table->integer('memory')->unsigned();
$table->mediumInteger('memory_overallocate')->unsigned()->nullable();
$table->integer('disk')->unsigned();
$table->mediumInteger('disk_overallocate')->unsigned()->nullable();
$table->char('daemonSecret', 36)->unique();
$table->smallInteger('daemonListen')->unsigned()->default(8080);
$table->smallInteger('daemonSFTP')->unsgined()->default(2022);
$table->string('daemonBase')->default('/home/daemon-files');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down()
{
Schema::dropIfExists('nodes');
}
}