mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
@@ -0,0 +1,15 @@
|
||||
'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');
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user