From ce4ad2a09fa3554ccde081bfd9c67904b056f956 Mon Sep 17 00:00:00 2001 From: Vitali Kari Date: Sun, 12 Apr 2020 01:08:15 +0200 Subject: [PATCH] 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 --- ...1_10_075852_alter_mpls_lsp_paths_table.php | 33 +++++++++++++++++++ misc/db_schema.yaml | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 database/migrations/2020_01_10_075852_alter_mpls_lsp_paths_table.php diff --git a/database/migrations/2020_01_10_075852_alter_mpls_lsp_paths_table.php b/database/migrations/2020_01_10_075852_alter_mpls_lsp_paths_table.php new file mode 100644 index 0000000000..be1ee50cd7 --- /dev/null +++ b/database/migrations/2020_01_10_075852_alter_mpls_lsp_paths_table.php @@ -0,0 +1,33 @@ +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(); + }); + } +} diff --git a/misc/db_schema.yaml b/misc/db_schema.yaml index 766fb8ad38..9a93d233f1 100644 --- a/misc/db_schema.yaml +++ b/misc/db_schema.yaml @@ -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: '' }