mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 18:38:25 +00:00
2ca6f2f8d4
* schema: add missing primary keys * Exclude ipv4_mac.id * Made primary key migrations SQLite compatible Co-authored-by: Tony Murray <murraytony@gmail.com>
34 lines
705 B
PHP
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');
|
|
}
|
|
}
|