mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-19 23:44:04 +02:00
18 lines
706 B
JavaScript
18 lines
706 B
JavaScript
exports.up = function (knex) {
|
|
return knex.schema
|
|
.alterTable("monitor", function (table) {
|
|
table.string("dns_transport", 3).notNullable().defaultTo("UDP");
|
|
table.string("doh_query_path", 255).defaultTo("dns-query");
|
|
table.boolean("force_http2").notNullable().defaultTo(false);
|
|
table.boolean("skip_remote_dnssec").notNullable().defaultTo(false);
|
|
});
|
|
};
|
|
|
|
exports.down = function (knex) {
|
|
return knex.schema.alterTable("monitor", function (table) {
|
|
table.dropColumn("dns_transport");
|
|
table.dropColumn("doh_query_path");
|
|
table.dropColumn("force_http2");
|
|
table.dropColumn("skip_remote_dnssec");
|
|
});
|
|
};
|