* Cleanup and add safe utility functions * Fix npm command * Update version * Fix an issue with dist builds caching * Update version
23 lines
660 B
JavaScript
23 lines
660 B
JavaScript
'use strict';
|
|
|
|
const { safeAddColumns } = require('../utils/migration-utils');
|
|
|
|
module.exports = {
|
|
async up(queryInterface, Sequelize) {
|
|
await safeAddColumns(queryInterface, 'inbox_items', [
|
|
{
|
|
name: 'title',
|
|
definition: {
|
|
type: Sequelize.STRING,
|
|
allowNull: true,
|
|
comment:
|
|
'Optional title field for inbox items, auto-generated for long content',
|
|
},
|
|
},
|
|
]);
|
|
},
|
|
|
|
async down(queryInterface, Sequelize) {
|
|
await queryInterface.removeColumn('inbox_items', 'title');
|
|
},
|
|
};
|