Path: blob/1.0-develop/database/migrations/2016_01_23_200648_add_nodes.php
7460 views
<?php12use Illuminate\Support\Facades\Schema;3use Illuminate\Database\Schema\Blueprint;4use Illuminate\Database\Migrations\Migration;56class AddNodes extends Migration7{8/**9* Run the migrations.10*/11public function up(): void12{13Schema::create('nodes', function (Blueprint $table) {14$table->increments('id');15$table->smallInteger('public')->unsigned();16$table->string('name');17$table->mediumInteger('location')->unsigned();18$table->string('fqdn');19$table->string('scheme')->default('https');20$table->integer('memory')->unsigned();21$table->mediumInteger('memory_overallocate')->unsigned()->nullable();22$table->integer('disk')->unsigned();23$table->mediumInteger('disk_overallocate')->unsigned()->nullable();24$table->char('daemonSecret', 36)->unique();25$table->smallInteger('daemonListen')->unsigned()->default(8080);26$table->smallInteger('daemonSFTP')->unsigned()->default(2022);27$table->string('daemonBase')->default('/home/daemon-files');28$table->timestamps();29});30}3132/**33* Reverse the migrations.34*/35public function down(): void36{37Schema::dropIfExists('nodes');38}39}404142