hunt-blacklist-backend/migrations/20260507153118-add-nickname...

17 lines
495 B
JavaScript

'use strict';
/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up (queryInterface, Sequelize) {
await queryInterface.addColumn('BlacklistReports', 'steam_nickname', {
type: Sequelize.STRING,
allowNull: true, // или false, если есть значение по умолчанию
after: 'steam_link'
});
},
async down (queryInterface, Sequelize) {
await queryInterface.removeColumn('BlacklistReports', 'steam_nickname');
}
};