0
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-11-22 03:07:50 +01:00
uptime-kuma/db/knex_migrations/2024-08-24-000-add-cache-bust.js
Dan Sullivan dc3ad88fe1
Add option to pass cache bust param (#3525)
Co-authored-by: Dan Sullivan <dan@symbiosgroup.co.uk>
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2024-08-24 22:57:31 +02:00

14 lines
357 B
JavaScript

exports.up = function (knex) {
return knex.schema
.alterTable("monitor", function (table) {
table.boolean("cache_bust").notNullable().defaultTo(false);
});
};
exports.down = function (knex) {
return knex.schema
.alterTable("monitor", function (table) {
table.dropColumn("cache_bust");
});
};