mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Restore _delta fields to signed (#15458)
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('ports_statistics', function (Blueprint $table) {
|
||||
$table->bigInteger('ifInNUcastPkts_delta')->nullable()->change();
|
||||
$table->bigInteger('ifOutNUcastPkts_delta')->nullable()->change();
|
||||
$table->bigInteger('ifInDiscards_delta')->nullable()->change();
|
||||
$table->bigInteger('ifOutDiscards_delta')->nullable()->change();
|
||||
$table->bigInteger('ifInUnknownProtos_delta')->nullable()->change();
|
||||
$table->bigInteger('ifInBroadcastPkts_delta')->nullable()->change();
|
||||
$table->bigInteger('ifOutBroadcastPkts_delta')->nullable()->change();
|
||||
$table->bigInteger('ifInMulticastPkts_delta')->nullable()->change();
|
||||
$table->bigInteger('ifOutMulticastPkts_delta')->nullable()->change();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('bgpPeers_cbgp', function (Blueprint $table) {
|
||||
$table->integer('AcceptedPrefixes_delta')->change();
|
||||
$table->integer('DeniedPrefixes_delta')->change();
|
||||
$table->integer('AdvertisedPrefixes_delta')->change();
|
||||
$table->integer('SuppressedPrefixes_delta')->change();
|
||||
$table->integer('WithdrawnPrefixes_delta')->change();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
};
|
||||
@@ -277,15 +277,15 @@ bgpPeers_cbgp:
|
||||
- { Field: AdvertisedPrefixes, Type: 'int unsigned', 'Null': false, Extra: '' }
|
||||
- { Field: SuppressedPrefixes, Type: 'int unsigned', 'Null': false, Extra: '' }
|
||||
- { Field: WithdrawnPrefixes, Type: 'int unsigned', 'Null': false, Extra: '' }
|
||||
- { Field: AcceptedPrefixes_delta, Type: 'int unsigned', 'Null': false, Extra: '' }
|
||||
- { Field: AcceptedPrefixes_delta, Type: int, 'Null': false, Extra: '' }
|
||||
- { Field: AcceptedPrefixes_prev, Type: 'int unsigned', 'Null': false, Extra: '' }
|
||||
- { Field: DeniedPrefixes_delta, Type: 'int unsigned', 'Null': false, Extra: '' }
|
||||
- { Field: DeniedPrefixes_delta, Type: int, 'Null': false, Extra: '' }
|
||||
- { Field: DeniedPrefixes_prev, Type: 'int unsigned', 'Null': false, Extra: '' }
|
||||
- { Field: AdvertisedPrefixes_delta, Type: 'int unsigned', 'Null': false, Extra: '' }
|
||||
- { Field: AdvertisedPrefixes_delta, Type: int, 'Null': false, Extra: '' }
|
||||
- { Field: AdvertisedPrefixes_prev, Type: 'int unsigned', 'Null': false, Extra: '' }
|
||||
- { Field: SuppressedPrefixes_delta, Type: 'int unsigned', 'Null': false, Extra: '' }
|
||||
- { Field: SuppressedPrefixes_delta, Type: int, 'Null': false, Extra: '' }
|
||||
- { Field: SuppressedPrefixes_prev, Type: 'int unsigned', 'Null': false, Extra: '' }
|
||||
- { Field: WithdrawnPrefixes_delta, Type: 'int unsigned', 'Null': false, Extra: '' }
|
||||
- { Field: WithdrawnPrefixes_delta, Type: int, 'Null': false, Extra: '' }
|
||||
- { Field: WithdrawnPrefixes_prev, Type: 'int unsigned', 'Null': false, Extra: '' }
|
||||
- { Field: context_name, Type: varchar(128), 'Null': true, Extra: '' }
|
||||
Indexes:
|
||||
@@ -1621,39 +1621,39 @@ ports_statistics:
|
||||
- { Field: port_id, Type: 'int unsigned', 'Null': false, Extra: '' }
|
||||
- { Field: ifInNUcastPkts, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifInNUcastPkts_prev, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifInNUcastPkts_delta, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifInNUcastPkts_delta, Type: bigint, 'Null': true, Extra: '' }
|
||||
- { Field: ifInNUcastPkts_rate, Type: int, 'Null': true, Extra: '' }
|
||||
- { Field: ifOutNUcastPkts, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifOutNUcastPkts_prev, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifOutNUcastPkts_delta, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifOutNUcastPkts_delta, Type: bigint, 'Null': true, Extra: '' }
|
||||
- { Field: ifOutNUcastPkts_rate, Type: int, 'Null': true, Extra: '' }
|
||||
- { Field: ifInDiscards, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifInDiscards_prev, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifInDiscards_delta, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifInDiscards_delta, Type: bigint, 'Null': true, Extra: '' }
|
||||
- { Field: ifInDiscards_rate, Type: int, 'Null': true, Extra: '' }
|
||||
- { Field: ifOutDiscards, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifOutDiscards_prev, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifOutDiscards_delta, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifOutDiscards_delta, Type: bigint, 'Null': true, Extra: '' }
|
||||
- { Field: ifOutDiscards_rate, Type: int, 'Null': true, Extra: '' }
|
||||
- { Field: ifInUnknownProtos, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifInUnknownProtos_prev, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifInUnknownProtos_delta, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifInUnknownProtos_delta, Type: bigint, 'Null': true, Extra: '' }
|
||||
- { Field: ifInUnknownProtos_rate, Type: int, 'Null': true, Extra: '' }
|
||||
- { Field: ifInBroadcastPkts, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifInBroadcastPkts_prev, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifInBroadcastPkts_delta, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifInBroadcastPkts_delta, Type: bigint, 'Null': true, Extra: '' }
|
||||
- { Field: ifInBroadcastPkts_rate, Type: int, 'Null': true, Extra: '' }
|
||||
- { Field: ifOutBroadcastPkts, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifOutBroadcastPkts_prev, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifOutBroadcastPkts_delta, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifOutBroadcastPkts_delta, Type: bigint, 'Null': true, Extra: '' }
|
||||
- { Field: ifOutBroadcastPkts_rate, Type: int, 'Null': true, Extra: '' }
|
||||
- { Field: ifInMulticastPkts, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifInMulticastPkts_prev, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifInMulticastPkts_delta, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifInMulticastPkts_delta, Type: bigint, 'Null': true, Extra: '' }
|
||||
- { Field: ifInMulticastPkts_rate, Type: int, 'Null': true, Extra: '' }
|
||||
- { Field: ifOutMulticastPkts, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifOutMulticastPkts_prev, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifOutMulticastPkts_delta, Type: 'bigint unsigned', 'Null': true, Extra: '' }
|
||||
- { Field: ifOutMulticastPkts_delta, Type: bigint, 'Null': true, Extra: '' }
|
||||
- { Field: ifOutMulticastPkts_rate, Type: int, 'Null': true, Extra: '' }
|
||||
Indexes:
|
||||
PRIMARY: { Name: PRIMARY, Columns: [port_id], Unique: true, Type: BTREE }
|
||||
|
||||
Reference in New Issue
Block a user