mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-03 03:07:02 +00:00
20 lines
535 B
JavaScript
20 lines
535 B
JavaScript
/**
|
|
* @param {import("knex").Knex} knex The Knex.js instance for database interaction.
|
|
* @returns {Promise<void>}
|
|
*/
|
|
exports.up = async (knex) => {
|
|
await knex.schema.alterTable("monitor", (table) => {
|
|
table.string("system_service_name");
|
|
});
|
|
};
|
|
|
|
/**
|
|
* @param {import("knex").Knex} knex The Knex.js instance for database interaction.
|
|
* @returns {Promise<void>}
|
|
*/
|
|
exports.down = async (knex) => {
|
|
await knex.schema.alterTable("monitor", (table) => {
|
|
table.dropColumn("system_service_name");
|
|
});
|
|
};
|