mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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();
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user