0
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-11-24 19:56:56 +01:00
uptime-kuma/db/old_migrations/patch-add-docker-columns.sql

19 lines
434 B
MySQL
Raw Permalink Normal View History

2022-01-13 17:17:07 +01:00
-- You should not modify if this have pushed to Github, unless it does serious wrong with the db.
BEGIN TRANSACTION;
CREATE TABLE docker_host (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
user_id INT NOT NULL,
docker_daemon VARCHAR(255),
docker_type VARCHAR(255),
name VARCHAR(255)
);
2022-01-13 17:17:07 +01:00
ALTER TABLE monitor
ADD docker_host INTEGER REFERENCES docker_host(id);
2022-01-13 17:17:07 +01:00
ALTER TABLE monitor
ADD docker_container VARCHAR(255);
2022-01-13 17:17:07 +01:00
COMMIT;