From 724193e37e220c66dcfd15333f510acc1137dd3c Mon Sep 17 00:00:00 2001 From: Sergio Gutierrez Villalba Date: Tue, 19 Dec 2023 13:22:37 +0100 Subject: [PATCH] refactor(user): update lastPasswordChangedAt migration date --- ...5141235-add-lastPasswordChangedAt-to-users.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 migrations/20231115141235-add-lastPasswordChangedAt-to-users.js diff --git a/migrations/20231115141235-add-lastPasswordChangedAt-to-users.js b/migrations/20231115141235-add-lastPasswordChangedAt-to-users.js new file mode 100644 index 00000000..6a06d6e5 --- /dev/null +++ b/migrations/20231115141235-add-lastPasswordChangedAt-to-users.js @@ -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'); + }, +};