Merge pull request #218 from the-luap/fix/optional-email-event-creation

fix: respect optional email settings in event creation
This commit is contained in:
Paul Nothaft
2026-03-08 15:42:14 +01:00
committed by GitHub
3 changed files with 193 additions and 27 deletions
@@ -0,0 +1,13 @@
exports.up = async function(knex) {
await knex.schema.alterTable('events', (table) => {
table.string('host_email', 255).nullable().alter();
table.string('admin_email', 255).nullable().alter();
});
};
exports.down = async function(knex) {
await knex.schema.alterTable('events', (table) => {
table.string('host_email', 255).notNullable().defaultTo('').alter();
table.string('admin_email', 255).notNullable().defaultTo('').alter();
});
};