39948-vm/backend/src/db/migrations/20260326054410-remove-entry-page-slug-column.js
2026-03-26 21:19:18 +04:00

21 lines
502 B
JavaScript

'use strict';
/**
* Migration: Remove entry_page_slug from projects table
*
* The entry page is now determined by the first page by sort_order,
* making entry_page_slug redundant.
*/
module.exports = {
async up(queryInterface, _Sequelize) {
await queryInterface.removeColumn('projects', 'entry_page_slug');
},
async down(queryInterface, Sequelize) {
await queryInterface.addColumn('projects', 'entry_page_slug', {
type: Sequelize.TEXT,
allowNull: true,
});
},
};