Cisco ASA table add alert defaults (#15488)

Fixes issue when values weren't set
Can't set an upper limit since models are different
Also, no way to set this in the webui and the default alert rule doesn't use the values, so yeah, probably could have deleted the fields.
This commit is contained in:
Tony Murray
2023-10-20 08:43:16 -05:00
committed by GitHub
parent 6ce43a300b
commit cdb0ff8ea8
2 changed files with 32 additions and 2 deletions
@@ -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('ciscoASA', function (Blueprint $table) {
$table->bigInteger('high_alert')->default(-1)->change();
$table->bigInteger('low_alert')->default(0)->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('ciscoASA', function (Blueprint $table) {
$table->bigInteger('high_alert')->change();
$table->bigInteger('low_alert')->change();
});
}
};