Restore _delta fields to signed (#15458)

This commit is contained in:
Tony Murray
2023-10-15 04:14:19 -07:00
committed by GitHub
parent a51e70d067
commit 6ccb17e4ea
3 changed files with 78 additions and 14 deletions

View File

@@ -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
{
//
}
};

View File

@@ -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
{
//
}
};