User/Debug/Profile: Add primary and secondary currency
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
async up (queryInterface, Sequelize) {
|
||||
/**
|
||||
* Add altering commands here.
|
||||
*
|
||||
* Example:
|
||||
* await queryInterface.createTable('users', { id: Sequelize.INTEGER });
|
||||
*/
|
||||
await queryInterface.addColumn('Users', 'primaryCurrency', {
|
||||
type: Sequelize.INTEGER,
|
||||
defaultValue: 0
|
||||
});
|
||||
await queryInterface.addColumn('Users', 'secondaryCurrency', {
|
||||
type: Sequelize.INTEGER,
|
||||
defaultValue: 0
|
||||
});
|
||||
},
|
||||
|
||||
async down (queryInterface, Sequelize) {
|
||||
/**
|
||||
* Add reverting commands here.
|
||||
*
|
||||
* Example:
|
||||
* await queryInterface.dropTable('users');
|
||||
*/
|
||||
await queryInterface.removeColumn('Users', 'primaryCurrency');
|
||||
await queryInterface.removeColumn('Users', 'secondaryCurrency');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user