uptime-kuma/db/knex_migrations/2023-06-30-1354-add-description-monitor.js
2023-06-30 17:26:37 +08:00

13 lines
355 B
JavaScript

// ALTER TABLE monitor ADD description TEXT default null;
exports.up = function (knex) {
return knex.schema.table("monitor", function (table) {
table.text("description").defaultTo(null);
});
};
exports.down = function (knex) {
return knex.schema.table("monitor", function (table) {
table.dropColumn("description");
});
};