Adds http_code to heartbeat

This commit is contained in:
Niyas 2021-08-14 08:14:50 +05:30 committed by GitHub
parent 82dd4cec96
commit 060a8b6a69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

49
db/patch7.sql Normal file
View file

@ -0,0 +1,49 @@
-- You should not modify if this have pushed to Github, unless it does serious wrong with the db.
PRAGMA foreign_keys = off;
BEGIN TRANSACTION;
create table heartbeat_dg_tmp
(
id INTEGER not null primary key autoincrement,
important INTEGER default 0 not null,
monitor_id INTEGER default 0 not null,
status INTEGER default 0 not null,
msg TEXT,
time DATETIME not null,
ping INTEGER default 0,
duration INTEGER default 0 not null,
http_code INTEGER default 0
);
insert into
heartbeat_dg_tmp(
id,
important,
monitor_id,
status,
msg,
time,
ping,
duration
)
select
id,
important,
monitor_id,
status,
msg,
time,
ping,
duration
from
heartbeat;
drop table heartbeat;
alter table
heartbeat_dg_tmp rename to heartbeat;
COMMIT;
PRAGMA foreign_keys = on;