mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-05-24 07:42:35 +02:00
15 lines
527 B
JavaScript
15 lines
527 B
JavaScript
// Add websocket ignore headers and websocket subprotocol
|
|
exports.up = function (knex) {
|
|
return knex.schema
|
|
.alterTable("monitor", function (table) {
|
|
table.boolean("ws_ignore_headers").notNullable().defaultTo(false);
|
|
table.string("subprotocol", 255).notNullable().defaultTo("");
|
|
});
|
|
};
|
|
|
|
exports.down = function (knex) {
|
|
return knex.schema.alterTable("monitor", function (table) {
|
|
table.dropColumn("ws_ignore_headers");
|
|
table.dropColumn("subprotocol");
|
|
});
|
|
};
|