librenms/database/migrations/2018_07_03_091314_create_mefinfo_table.php
Jellyfrog 77c531527c
Apply fixes from StyleCI (#12117)
* Apply fixes from StyleCI

* Disable style check
2020-09-21 14:54:51 +02:00

37 lines
856 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateMefinfoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('mefinfo', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('device_id')->index();
$table->integer('mefID')->index();
$table->string('mefType', 128);
$table->string('mefIdent', 128);
$table->integer('mefMTU')->default(1500);
$table->string('mefAdmState', 128);
$table->string('mefRowState', 128);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('mefinfo');
}
}