uptime-kuma/db/patch-incident-table.sql

19 lines
526 B
MySQL
Raw Normal View History

2021-09-16 17:48:28 +03:00
-- You should not modify if this have pushed to Github, unless it does serious wrong with the db.
BEGIN TRANSACTION;
create table incident
(
id INTEGER not null
constraint incident_pk
primary key autoincrement,
title VARCHAR(255) not null,
content TEXT not null,
style VARCHAR(30) default 'warning' not null,
created_date DATETIME default (DATETIME('now')) not null,
last_updated_date DATETIME,
2021-09-16 17:48:28 +03:00
pin BOOLEAN default 1 not null,
active BOOLEAN default 1 not null
);
COMMIT;