Skip to content

Commit 7053e2e

Browse files
committed
sql: is_current should only be 1 or null
(null allows multiple (ip,null) pairs, with 0 for deleted monitors only one monitor for the ip can be deleted)
1 parent 29ea41c commit 7053e2e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sql/ntppool.update

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,6 +1237,9 @@ select id, account_id, type,
12371237
from monitors
12381238
where tls_name not like '%.system';
12391239

1240+
#148
1241+
update monitors set is_current=null where is_current=0;
1242+
12401243
#todo
12411244

12421245

0 commit comments

Comments
 (0)