mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Location based Alert Rule (#11128)
* Location base Alert Rule * travis fix
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateAlertLocationMapTable extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('alert_location_map', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->unsignedInteger('rule_id');
|
||||
$table->unsignedInteger('location_id');
|
||||
$table->unique(['rule_id','location_id'], 'alert_location_map_rule_id_location_id_uindex');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('alert_location_map');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user