mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-11 08:04:17 -08:00
26 lines
806 B
MySQL
26 lines
806 B
MySQL
|
-- You should not modify if this have pushed to Github, unless it does serious wrong with the db.
|
||
|
BEGIN TRANSACTION;
|
||
|
|
||
|
CREATE TABLE [status_page](
|
||
|
[id] INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||
|
[slug] VARCHAR(255) NOT NULL UNIQUE,
|
||
|
[title] VARCHAR(255) NOT NULL,
|
||
|
[icon] VARCHAR(255) NOT NULL,
|
||
|
[theme] VARCHAR(30) NOT NULL,
|
||
|
[published] BOOLEAN NOT NULL DEFAULT 1,
|
||
|
[search_engine_index] BOOLEAN NOT NULL DEFAULT 1,
|
||
|
[public] BOOLEAN NOT NULL DEFAULT 1,
|
||
|
[password] VARCHAR
|
||
|
);
|
||
|
|
||
|
CREATE UNIQUE INDEX [slug] ON [status_page]([slug]);
|
||
|
|
||
|
|
||
|
CREATE TABLE [status_page_cname](
|
||
|
[id] INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||
|
[status_page_id] INTEGER NOT NULL REFERENCES [status_page]([id]) ON DELETE CASCADE ON UPDATE CASCADE,
|
||
|
[domain] VARCHAR NOT NULL UNIQUE
|
||
|
);
|
||
|
|
||
|
COMMIT;
|