mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-12-05 01:10:52 +00:00
Co-authored-by: Your Name <you@example.com> Co-authored-by: Frank Elsinga <frank@elsinga.de> Co-authored-by: Louis Lam <louislam@users.noreply.github.com>
16 lines
573 B
JavaScript
16 lines
573 B
JavaScript
// Add websocket ignore headers and websocket subprotocol
|
|
exports.up = function (knex) {
|
|
return knex.schema
|
|
.alterTable("monitor", function (table) {
|
|
table.boolean("ws_ignore_sec_websocket_accept_header").notNullable().defaultTo(false);
|
|
table.string("ws_subprotocol", 255).notNullable().defaultTo("");
|
|
});
|
|
};
|
|
|
|
exports.down = function (knex) {
|
|
return knex.schema.alterTable("monitor", function (table) {
|
|
table.dropColumn("ws_ignore_sec_websocket_accept_header");
|
|
table.dropColumn("ws_subprotocol");
|
|
});
|
|
};
|