mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-18 23:34:04 +02:00
added new columns
This commit is contained in:
parent
656c28e267
commit
bd3c8050c9
1 changed files with 18 additions and 0 deletions
18
db/knex_migrations/2025-06-27-0001-add-rtsp.js
Normal file
18
db/knex_migrations/2025-06-27-0001-add-rtsp.js
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
// Add new columns and alter 'manual_status' to smallint
|
||||||
|
// migration file: add_rtsp_fields_to_monitor.js
|
||||||
|
|
||||||
|
exports.up = function (knex) {
|
||||||
|
return knex.schema.alterTable("monitor", function (table) {
|
||||||
|
table.string("rtsp_username");
|
||||||
|
table.string("rtsp_password");
|
||||||
|
table.string("rtsp_path");
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
exports.down = function (knex) {
|
||||||
|
return knex.schema.alterTable("monitor", function (table) {
|
||||||
|
table.dropColumn("rtsp_username");
|
||||||
|
table.dropColumn("rtsp_password");
|
||||||
|
table.dropColumn("rtsp_path");
|
||||||
|
});
|
||||||
|
};
|
Loading…
Add table
Reference in a new issue