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
|
||||
{
|
||||
//
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user