Files
starr-philproperties/database/migrations/20260101000069-add-preferred-currency-to-users.js
T
kennethobsequio 1372f4e975 testing 101
Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
2026-06-30 19:31:45 +08:00

16 lines
358 B
JavaScript

'use strict';
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.addColumn('users', 'preferred_currency', {
type: Sequelize.CHAR(3),
allowNull: false,
defaultValue: 'USD',
});
},
async down(queryInterface) {
await queryInterface.removeColumn('users', 'preferred_currency');
},
};