summaryrefslogtreecommitdiffstats
path: root/schema/mysql/slaperiods.sql
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:22:15 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:22:15 +0000
commit99158ba38e5ad4a210b488951838266fb5cfff95 (patch)
tree57d669fe7fed381905dad1dbf19d912f85af71aa /schema/mysql/slaperiods.sql
parentInitial commit. (diff)
downloadicingaweb2-module-idoreports-99158ba38e5ad4a210b488951838266fb5cfff95.tar.xz
icingaweb2-module-idoreports-99158ba38e5ad4a210b488951838266fb5cfff95.zip
Adding upstream version 0.10.1.upstream/0.10.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'schema/mysql/slaperiods.sql')
-rw-r--r--schema/mysql/slaperiods.sql17
1 files changed, 17 insertions, 0 deletions
diff --git a/schema/mysql/slaperiods.sql b/schema/mysql/slaperiods.sql
new file mode 100644
index 0000000..32bc55e
--- /dev/null
+++ b/schema/mysql/slaperiods.sql
@@ -0,0 +1,17 @@
+DROP TABLE IF EXISTS icinga_sla_periods;
+CREATE TABLE icinga_sla_periods (
+ timeperiod_object_id BIGINT(20) UNSIGNED NOT NULL,
+ start_time timestamp NOT NULL,
+ end_time timestamp NULL DEFAULT NULL,
+ PRIMARY KEY tp_start (timeperiod_object_id, start_time),
+ UNIQUE KEY tp_end (timeperiod_object_id, end_time)
+) ENGINE InnoDB;
+
+DROP TABLE IF EXISTS icinga_outofsla_periods;
+CREATE TABLE icinga_outofsla_periods (
+ timeperiod_object_id BIGINT(20) UNSIGNED NOT NULL,
+ start_time timestamp NOT NULL,
+ end_time timestamp NULL DEFAULT NULL,
+ PRIMARY KEY tp_start (timeperiod_object_id, start_time),
+ UNIQUE KEY tp_end (timeperiod_object_id, end_time)
+) ENGINE InnoDB;