Kuma/db/knex_migrations/2023-10-05-1200-add-disable-url-to-notification.js
cyril59310 eecb8c809e fix
2025-05-04 18:41:59 +02:00

11 lines
381 B
JavaScript

exports.up = function (knex) {
return knex.schema.alterTable("notification", function (table) {
table.boolean("disableUrl").defaultTo(false).notNullable().comment("Disable URL in Discord notifications");
});
};
exports.down = function (knex) {
return knex.schema.alterTable("notification", function (table) {
table.dropColumn("disableUrl");
});
};