mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-14 13:24:47 +00:00
Adds http_code to heartbeat
This commit is contained in:
parent
82dd4cec96
commit
060a8b6a69
1 changed files with 49 additions and 0 deletions
49
db/patch7.sql
Normal file
49
db/patch7.sql
Normal 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;
|
Loading…
Add table
Reference in a new issue