DB: Add fields for ping settings
This commit is contained in:
27
migrations/20230405130546-add-ping-settings-to-user.js
Normal file
27
migrations/20230405130546-add-ping-settings-to-user.js
Normal file
@@ -0,0 +1,27 @@
|
||||
'use strict';
|
||||
|
||||
/** @type {import('sequelize-cli').Migration} */
|
||||
module.exports = {
|
||||
async up(queryInterface, Sequelize) {
|
||||
await queryInterface.addColumn('Users', 'wishlistPing', {
|
||||
type: Sequelize.BOOLEAN,
|
||||
defaultValue: false
|
||||
});
|
||||
|
||||
await queryInterface.addColumn('Users', 'dropPing', {
|
||||
type: Sequelize.BOOLEAN,
|
||||
defaultValue: false
|
||||
});
|
||||
|
||||
await queryInterface.addColumn('Users', 'dailyPing', {
|
||||
type: Sequelize.BOOLEAN,
|
||||
defaultValue: false
|
||||
});
|
||||
},
|
||||
|
||||
async down(queryInterface, Sequelize) {
|
||||
await queryInterface.removeColumn('Users', 'wishlistPing');
|
||||
await queryInterface.removeColumn('Users', 'dropPing');
|
||||
await queryInterface.removeColumn('Users', 'dailyPing');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user