mirror of
https://github.com/Troplo/Colubrina.git
synced 2024-11-26 04:59:12 +11:00
24 lines
556 B
JavaScript
24 lines
556 B
JavaScript
'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');
|
|
*/
|
|
}
|
|
};
|