uptime-kuma/db/knex_migrations/2023-09-29-0000-heartbeat-retires.js

16 lines
392 B
JavaScript
Raw Normal View History

exports.up = function (knex) {
// Add new column heartbeat.retries
return knex.schema
.alterTable("heartbeat", function (table) {
table.integer("retries").notNullable().defaultTo(0);
});
};
exports.down = function (knex) {
return knex.schema
.alterTable("heartbeat", function (table) {
table.dropColumn("retries");
});
};