fix: the email confirmation link on mail message

This commit is contained in:
Ahmed Bouhuolia
2024-05-06 17:36:36 +02:00
parent f4440c9a03
commit a5bfb0b02b
2 changed files with 13 additions and 10 deletions

View File

@@ -1,8 +1,12 @@
exports.up = function (knex) {
return knex.schema.table('users', (table) => {
table.string('verify_token');
table.boolean('verified').defaultTo(false);
});
return knex.schema
.table('users', (table) => {
table.string('verify_token');
table.boolean('verified').defaultTo(false);
})
.then(() => {
return knex('USERS').update({ verified: true });
});
};
exports.down = (knex) => {};