Colubrina/backend/migrations/20230130052902-passwordReset.js

25 lines
556 B
JavaScript
Raw Normal View History

2023-01-30 17:16:38 +11:00
'use strict';
/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up (queryInterface, Sequelize) {
await queryInterface.addColumn("Users", "passwordResetToken", {
type: Sequelize.STRING,
allowNull: true
})
await queryInterface.addColumn("Users", "passwordResetExpiry", {
type: Sequelize.DATE,
allowNull: true
})
},
async down (queryInterface, Sequelize) {
/**
* Add reverting commands here.
*
* Example:
* await queryInterface.dropTable('users');
*/
}
};