mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-05-02 06:26:06 -04:00
Move all old db patch files to db/old_migrations/
This commit is contained in:
parent
e26abc3156
commit
ccc39b9516
47 changed files with 7 additions and 3 deletions
18
db/old_migrations/patch-add-docker-columns.sql
Normal file
18
db/old_migrations/patch-add-docker-columns.sql
Normal file
|
@ -0,0 +1,18 @@
|
|||
-- 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)
|
||||
);
|
||||
|
||||
ALTER TABLE monitor
|
||||
ADD docker_host INTEGER REFERENCES docker_host(id);
|
||||
|
||||
ALTER TABLE monitor
|
||||
ADD docker_container VARCHAR(255);
|
||||
|
||||
COMMIT;
|
Loading…
Add table
Add a link
Reference in a new issue