Never set bgp and ports delta fields to unsigned (#15468)

it can make the migration fail.
This commit is contained in:
Tony Murray 2023-10-16 12:14:57 -07:00 committed by GitHub
parent 921872369d
commit 1cbcbdabbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 14 deletions

View File

@ -14,31 +14,22 @@ return new class extends Migration
Schema::table('ports_statistics', function (Blueprint $table) { Schema::table('ports_statistics', function (Blueprint $table) {
$table->bigInteger('ifInNUcastPkts')->unsigned()->nullable()->change(); $table->bigInteger('ifInNUcastPkts')->unsigned()->nullable()->change();
$table->bigInteger('ifInNUcastPkts_prev')->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')->unsigned()->nullable()->change();
$table->bigInteger('ifOutNUcastPkts_prev')->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')->unsigned()->nullable()->change();
$table->bigInteger('ifInDiscards_prev')->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')->unsigned()->nullable()->change();
$table->bigInteger('ifOutDiscards_prev')->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')->unsigned()->nullable()->change();
$table->bigInteger('ifInUnknownProtos_prev')->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')->unsigned()->nullable()->change();
$table->bigInteger('ifInBroadcastPkts_prev')->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')->unsigned()->nullable()->change();
$table->bigInteger('ifOutBroadcastPkts_prev')->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')->unsigned()->nullable()->change();
$table->bigInteger('ifInMulticastPkts_prev')->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')->unsigned()->nullable()->change();
$table->bigInteger('ifOutMulticastPkts_prev')->unsigned()->nullable()->change(); $table->bigInteger('ifOutMulticastPkts_prev')->unsigned()->nullable()->change();
$table->bigInteger('ifOutMulticastPkts_delta')->unsigned()->nullable()->change();
}); });
} }

View File

@ -20,15 +20,10 @@ return new class extends Migration
$table->integer('AdvertisedPrefixes')->unsigned()->change(); $table->integer('AdvertisedPrefixes')->unsigned()->change();
$table->integer('SuppressedPrefixes')->unsigned()->change(); $table->integer('SuppressedPrefixes')->unsigned()->change();
$table->integer('WithdrawnPrefixes')->unsigned()->change(); $table->integer('WithdrawnPrefixes')->unsigned()->change();
$table->integer('AcceptedPrefixes_delta')->unsigned()->change();
$table->integer('AcceptedPrefixes_prev')->unsigned()->change(); $table->integer('AcceptedPrefixes_prev')->unsigned()->change();
$table->integer('DeniedPrefixes_delta')->unsigned()->change();
$table->integer('DeniedPrefixes_prev')->unsigned()->change(); $table->integer('DeniedPrefixes_prev')->unsigned()->change();
$table->integer('AdvertisedPrefixes_delta')->unsigned()->change();
$table->integer('AdvertisedPrefixes_prev')->unsigned()->change(); $table->integer('AdvertisedPrefixes_prev')->unsigned()->change();
$table->integer('SuppressedPrefixes_delta')->unsigned()->change();
$table->integer('SuppressedPrefixes_prev')->unsigned()->change(); $table->integer('SuppressedPrefixes_prev')->unsigned()->change();
$table->integer('WithdrawnPrefixes_delta')->unsigned()->change();
$table->integer('WithdrawnPrefixes_prev')->unsigned()->change(); $table->integer('WithdrawnPrefixes_prev')->unsigned()->change();
}); });
} }