librenms/database/migrations/2018_07_03_091314_create_juniAtmVp_table.php
Richard Kojedzinszky 2ca6f2f8d4
schema: add missing primary keys (#12106)
* schema: add missing primary keys

* Exclude ipv4_mac.id

* Made primary key migrations SQLite compatible

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-10-14 20:37:40 -05:00

34 lines
705 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateJuniAtmVpTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('juniAtmVp', function (Blueprint $table) {
$table->id();
$table->unsignedInteger('juniAtmVp_id');
$table->unsignedInteger('port_id')->index();
$table->unsignedInteger('vp_id');
$table->string('vp_descr', 32);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('juniAtmVp');
}
}