mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-06-23 04:10:14 +00:00
0f61d7ee1b
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
14 lines
414 B
JavaScript
14 lines
414 B
JavaScript
exports.up = function (knex) {
|
|
// Add new column heartbeat.end_time
|
|
return knex.schema.alterTable("heartbeat", function (table) {
|
|
table.datetime("end_time").nullable().defaultTo(null);
|
|
});
|
|
};
|
|
|
|
exports.down = function (knex) {
|
|
// Rename heartbeat.start_time to heartbeat.time
|
|
return knex.schema.alterTable("heartbeat", function (table) {
|
|
table.dropColumn("end_time");
|
|
});
|
|
};
|