mirror of
https://github.com/Troplo/Colubrina.git
synced 2024-11-23 03:36:42 +11:00
25 lines
556 B
JavaScript
25 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');
|
||
|
*/
|
||
|
}
|
||
|
};
|