mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
[status page] fix wrong foreign key
This commit is contained in:
parent
29920f6b60
commit
5f533b9091
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ create table `group`
|
||||||
CREATE TABLE [monitor_group]
|
CREATE TABLE [monitor_group]
|
||||||
(
|
(
|
||||||
[id] INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
|
[id] INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||||
[monitor_id] INTEGER NOT NULL REFERENCES [group] ([id]) ON DELETE CASCADE ON UPDATE CASCADE REFERENCES [monitor] ([id]) ON DELETE CASCADE ON UPDATE CASCADE,
|
[monitor_id] INTEGER NOT NULL REFERENCES [monitor] ([id]) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||||
[group_id] INTEGER NOT NULL,
|
[group_id] INTEGER NOT NULL REFERENCES [group] ([id]) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||||
weight BOOLEAN NOT NULL DEFAULT 1000
|
weight BOOLEAN NOT NULL DEFAULT 1000
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue