mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 18:38:25 +00:00
77c531527c
* Apply fixes from StyleCI * Disable style check
37 lines
856 B
PHP
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');
|
|
}
|
|
}
|