PteroTheme/database/migrations/2016_01_23_195641_add_alloc...

32 lines
777 B
PHP
Raw Normal View History

2016-01-16 00:26:50 +00:00
<?php
use Illuminate\Support\Facades\Schema;
2016-01-16 00:26:50 +00:00
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
2016-01-23 20:42:25 +00:00
class AddAllocationsTable extends Migration
2016-01-16 00:26:50 +00:00
{
/**
* Run the migrations.
*/
public function up(): void
2016-01-16 00:26:50 +00:00
{
2016-01-23 20:42:25 +00:00
Schema::create('allocations', function (Blueprint $table) {
2016-01-16 00:26:50 +00:00
$table->increments('id');
2016-01-23 20:42:25 +00:00
$table->mediumInteger('node')->unsigned();
$table->string('ip');
$table->mediumInteger('port')->unsigned();
$table->mediumInteger('assigned_to')->unsigned()->nullable();
2016-01-16 00:26:50 +00:00
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
2016-01-16 00:26:50 +00:00
{
Schema::dropIfExists('allocations');
2016-01-16 00:26:50 +00:00
}
}