add alarm level from db

This commit is contained in:
salam committed 2026-02-06 10:29:49 +01:00
1 parent 4e77862aa7
commit 40f40db63c
28 files changed
+248 -251

No files matched your search

+2 -2
View File
@@ -14,8 +14,8 @@ class AlarmLevelSeeder extends Seeder
*/
$sql = "INSERT INTO `alarm_levels` (`id`, `name`, `color`, `default_threshold`, `created_at`, `updated_at`)
VALUES
(1, 'LEVEL 1', 'info', 0.01, NULL, NULL),
(2, 'LEVEL 2', 'warning', 0.20, NULL, NULL),
(1, 'LEVEL 1', 'success', 0.01, NULL, NULL),
(2, 'LEVEL 2', 'info', 0.20, NULL, NULL),
(3, 'LEVEL 3', 'danger', 0.30, NULL, NULL);
";
DB::unprepared($sql);