Skip to content

Commit

Permalink
refactor(user): update lastPasswordChangedAt migration date
Browse files Browse the repository at this point in the history
  • Loading branch information
sg-gs committed Dec 19, 2023
1 parent b2b25dc commit 724193e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions migrations/20231115141235-add-lastPasswordChangedAt-to-users.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.addColumn('users', 'last_password_changed_at', {
type: Sequelize.DATE,
allowNull: true,
defaultValue: null,
});
},

async down(queryInterface) {
await queryInterface.removeColumn('users', 'last_password_changed_at');
},
};

0 comments on commit 724193e

Please sign in to comment.