1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-12-22 22:13:20 +02:00

chore: add database_query_handle_empty_result migration

This commit is contained in:
Antonino Natale 2024-12-10 23:12:10 +01:00
parent bdbd9e5d05
commit 16f8e4ee80

View File

@ -0,0 +1,13 @@
exports.up = function (knex) {
return knex.schema
.alterTable("monitor", function (table) {
table.boolean("database_query_handle_empty_as_failure").notNullable().defaultTo(false);
});
};
exports.down = function (knex) {
return knex.schema
.alterTable("monitor", function (table) {
table.dropColumn("database_query_handle_empty_as_failure");
});
};