diff --git a/db/patch-group-table.sql b/db/patch-group-table.sql index 46b74660..1c6f366b 100644 --- a/db/patch-group-table.sql +++ b/db/patch-group-table.sql @@ -16,8 +16,8 @@ create table `group` CREATE TABLE [monitor_group] ( [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, - [group_id] INTEGER NOT NULL, + [monitor_id] INTEGER NOT NULL REFERENCES [monitor] ([id]) ON DELETE CASCADE ON UPDATE CASCADE, + [group_id] INTEGER NOT NULL REFERENCES [group] ([id]) ON DELETE CASCADE ON UPDATE CASCADE, weight BOOLEAN NOT NULL DEFAULT 1000 );