mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
Never set bgp and ports delta fields to unsigned (#15468)
it can make the migration fail.
This commit is contained in:
parent
921872369d
commit
1cbcbdabbb
@ -14,31 +14,22 @@ return new class extends Migration
|
||||
Schema::table('ports_statistics', function (Blueprint $table) {
|
||||
$table->bigInteger('ifInNUcastPkts')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifInNUcastPkts_prev')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifInNUcastPkts_delta')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifOutNUcastPkts')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifOutNUcastPkts_prev')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifOutNUcastPkts_delta')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifInDiscards')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifInDiscards_prev')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifInDiscards_delta')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifOutDiscards')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifOutDiscards_prev')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifOutDiscards_delta')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifInUnknownProtos')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifInUnknownProtos_prev')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifInUnknownProtos_delta')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifInBroadcastPkts')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifInBroadcastPkts_prev')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifInBroadcastPkts_delta')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifOutBroadcastPkts')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifOutBroadcastPkts_prev')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifOutBroadcastPkts_delta')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifInMulticastPkts')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifInMulticastPkts_prev')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifInMulticastPkts_delta')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifOutMulticastPkts')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifOutMulticastPkts_prev')->unsigned()->nullable()->change();
|
||||
$table->bigInteger('ifOutMulticastPkts_delta')->unsigned()->nullable()->change();
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -20,15 +20,10 @@ return new class extends Migration
|
||||
$table->integer('AdvertisedPrefixes')->unsigned()->change();
|
||||
$table->integer('SuppressedPrefixes')->unsigned()->change();
|
||||
$table->integer('WithdrawnPrefixes')->unsigned()->change();
|
||||
$table->integer('AcceptedPrefixes_delta')->unsigned()->change();
|
||||
$table->integer('AcceptedPrefixes_prev')->unsigned()->change();
|
||||
$table->integer('DeniedPrefixes_delta')->unsigned()->change();
|
||||
$table->integer('DeniedPrefixes_prev')->unsigned()->change();
|
||||
$table->integer('AdvertisedPrefixes_delta')->unsigned()->change();
|
||||
$table->integer('AdvertisedPrefixes_prev')->unsigned()->change();
|
||||
$table->integer('SuppressedPrefixes_delta')->unsigned()->change();
|
||||
$table->integer('SuppressedPrefixes_prev')->unsigned()->change();
|
||||
$table->integer('WithdrawnPrefixes_delta')->unsigned()->change();
|
||||
$table->integer('WithdrawnPrefixes_prev')->unsigned()->change();
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user