summaryrefslogtreecommitdiffstats
path: root/db/old_migrations/patch-timeout.sql
diff options
context:
space:
mode:
Diffstat (limited to 'db/old_migrations/patch-timeout.sql')
-rw-r--r--db/old_migrations/patch-timeout.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/db/old_migrations/patch-timeout.sql b/db/old_migrations/patch-timeout.sql
new file mode 100644
index 0000000..f257112
--- /dev/null
+++ b/db/old_migrations/patch-timeout.sql
@@ -0,0 +1,7 @@
+-- You should not modify if this have pushed to Github, unless it does serious wrong with the db.
+BEGIN TRANSACTION;
+
+UPDATE monitor SET timeout = (interval * 0.8)
+WHERE timeout IS NULL OR timeout <= 0;
+
+COMMIT;