Kuma/db/knex_migrations/2023-10-05-1200-add-disable-url-to-notification.js
cyril59310 7b9bad1953 fix
2025-05-04 18:49:48 +02:00

11 lines
383 B
JavaScript

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