You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
449 B
17 lines
449 B
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");
|
|
});
|
|
};
|