mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-23 20:15:56 +00:00
16 lines
443 B
JavaScript
16 lines
443 B
JavaScript
|
// Add websocket URL
|
||
|
exports.up = function (knex) {
|
||
|
return knex.schema
|
||
|
.alterTable("monitor", function (table) {
|
||
|
table.text("wsurl");
|
||
|
table.boolean("ws_ignore_headers").notNullable().defaultTo(false);
|
||
|
});
|
||
|
};
|
||
|
|
||
|
exports.down = function (knex) {
|
||
|
return knex.schema.alterTable("monitor", function (table) {
|
||
|
table.dropColumn("wsurl");
|
||
|
table.dropColumn("ws_ignore_headers");
|
||
|
});
|
||
|
};
|