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: '' }