uptime-kuma/db/knex_migrations/2024-10-1315-rabbitmq-monitor.js

18 lines
479 B
JavaScript
Raw Normal View History

2024-10-15 02:08:31 +00:00
exports.up = function (knex) {
return knex.schema.alterTable("monitor", function (table) {
table.text("rabbitmq_nodes");
table.string("rabbitmq_username");
table.string("rabbitmq_password");
});
};
exports.down = function (knex) {
return knex.schema.alterTable("monitor", function (table) {
table.dropColumn("rabbitmq_nodes");
table.dropColumn("rabbitmq_username");
table.dropColumn("rabbitmq_password");
});
};