mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 23:34:03 +00:00
19 lines
468 B
MySQL
19 lines
468 B
MySQL
|
-- You should not modify if this have pushed to Github, unless it does serious wrong with the db.
|
||
|
BEGIN TRANSACTION;
|
||
|
|
||
|
CREATE TABLE [notification_sent_history] (
|
||
|
[id] INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||
|
[type] VARCHAR(50) NOT NULL,
|
||
|
[monitor_id] INTEGER NOT NULL,
|
||
|
[days] INTEGER NOT NULL,
|
||
|
UNIQUE([type], [monitor_id], [days])
|
||
|
);
|
||
|
|
||
|
CREATE INDEX [good_index] ON [notification_sent_history] (
|
||
|
[type],
|
||
|
[monitor_id],
|
||
|
[days]
|
||
|
);
|
||
|
|
||
|
COMMIT;
|