diff --git a/migrations/20260718034747_users_settings.js b/migrations/20260718034747_users_settings.js new file mode 100644 index 00000000..e806705b --- /dev/null +++ b/migrations/20260718034747_users_settings.js @@ -0,0 +1,29 @@ +exports.up = async function(knex) { + await knex.schema.alterTable('users', (table) => { + table.jsonb('settings'); + }); + + await knex.schema.alterTable('notifications', (table) => { + table.boolean('notify') + .notNullable() + .defaultTo(true); + + table.boolean('email') + .notNullable() + .defaultTo(false); + + table.datetime('emailed_at'); + }); +}; + +exports.down = async function(knex) { + await knex.schema.alterTable('users', (table) => { + table.dropColumn('settings'); + }); + + await knex.schema.alterTable('notifications', (table) => { + table.dropColumn('notify'); + table.dropColumn('email'); + table.dropColumn('emailed_at'); + }); +}; diff --git a/seeds/00_tags.js b/seeds/00_tags.js index 6ef89fe2..0de59c3f 100755 --- a/seeds/00_tags.js +++ b/seeds/00_tags.js @@ -1638,6 +1638,10 @@ const aliases = [ name: 'mmf', for: 'mfm', }, + { + name: 'threesome mmf', + for: 'mfm', + }, { name: 'fmf', for: 'mff',