mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-18 02:47:24 +00:00
16 lines
392 B
JavaScript
16 lines
392 B
JavaScript
|
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");
|
||
|
});
|
||
|
};
|