mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -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: '' }
|
||||
|
||||
Reference in New Issue
Block a user