Fix for Nokia 7705 SAR (#11021)

* Fix for Nokia 7705 SAR

* fix copy and paste typo

* Update 2020_01_10_075852_alter_mpls_lsp_paths_table.php

just trigger tests

* Update 2020_01_10_075852_alter_mpls_lsp_paths_table.php

* Update 2020_01_10_075852_alter_mpls_lsp_paths_table.php

Co-authored-by: Neil Lathwood <gh+n@laf.io>
This commit is contained in:
Vitali Kari
2020-04-12 01:08:15 +02:00
committed by GitHub
parent 492ab32b6d
commit ce4ad2a09f
2 changed files with 34 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AlterMplsLspPathsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::connection()->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
Schema::table('mpls_lsp_paths', function (Blueprint $table) {
$table->unsignedInteger('mplsLspPathOperMetric')->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('mpls_lsp_paths', function (Blueprint $table) {
$table->unsignedInteger('mplsLspPathOperMetric')->change();
});
}
}

View File

@@ -949,7 +949,7 @@ mpls_lsp_paths:
- { Field: mplsLspPathFailCode, Type: varchar(64), 'Null': false, Extra: '' }
- { Field: mplsLspPathFailNodeAddr, Type: varchar(32), 'Null': false, Extra: '' }
- { Field: mplsLspPathMetric, Type: 'int(10) unsigned', 'Null': false, Extra: '' }
- { Field: mplsLspPathOperMetric, Type: 'int(10) unsigned', 'Null': false, Extra: '' }
- { Field: mplsLspPathOperMetric, Type: 'int(10) unsigned', 'Null': true, Extra: '' }
- { Field: mplsLspPathTimeUp, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: mplsLspPathTimeDown, Type: bigint(20), 'Null': true, Extra: '' }
- { Field: mplsLspPathTransitionCount, Type: 'int(10) unsigned', 'Null': true, Extra: '' }