Widget Eventlog Sensors Link and Mouseover functionality (#11380)

* Global Settings - Alert Default Settings

* Revert "Global Settings - Alert Default Settings"

This reverts commit a1af62b146.

* Widget Eventlog - Sensors link and overlib Image

* travis fix

* handling via AppServiceProvider

* collect function

* Travis ...

* static list of Sensor Types

* adding all sensor graph_types

* remove collect

* correct getTypes - remove change to lower case

* class sensor_descr switch

* class sensor_descr switch - revert

* Use standard sensor type names

* move types to attribute list

* going back to changes from 9eee7fad58

Co-authored-by: Tony Murray <[email protected]>
This commit is contained in:
SourceDoctor
2020-04-19 12:57:49 -05:00
committed by GitHub
co-authored by Tony Murray
parent bb9ebb4e45
commit cc2894c0df
7 changed files with 167 additions and 32 deletions
@@ -0,0 +1,32 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class EventlogSensorReferenceCleanup extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
foreach (\App\Models\Sensor::getTypes() as $type) {
DB::table('eventlog')->where('type', ucfirst($type))->update(['type' => $type]);
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
foreach (\App\Models\Sensor::getTypes() as $type) {
DB::table('eventlog')->where('type', $type)->update(['type' => ucfirst($type)]);
}
}
}