39948-vm/backend/src/db/migrations/20260331024423-remove-unused-theme-columns-from-projects.js
2026-07-01 15:45:38 +02:00

25 lines
720 B
JavaScript

'use strict';
module.exports = {
async up(queryInterface, _Sequelize) {
await queryInterface.removeColumn('projects', 'theme_config_json');
await queryInterface.removeColumn('projects', 'custom_css_json');
await queryInterface.removeColumn('projects', 'cdn_base_url');
},
async down(queryInterface, Sequelize) {
await queryInterface.addColumn('projects', 'theme_config_json', {
type: Sequelize.JSON,
allowNull: true,
});
await queryInterface.addColumn('projects', 'custom_css_json', {
type: Sequelize.JSON,
allowNull: true,
});
await queryInterface.addColumn('projects', 'cdn_base_url', {
type: Sequelize.TEXT,
allowNull: true,
});
},
};