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 <[email protected]>
This commit is contained in:
co-authored by
Neil Lathwood
parent
492ab32b6d
commit
ce4ad2a09f
@@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user