server/migrations/20260714000000-add-mcp-to-search-queries-source.js
Rama main · réplica de lectura del repositorio original.
"use strict";
/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.sequelize.query(
"ALTER TYPE enum_search_queries_source ADD VALUE 'mcp'"
);
},
async down(queryInterface, Sequelize) {
// Note: PostgreSQL doesn't support removing enum values easily
// This would require recreating the enum type and updating all references
throw new Error("Cannot rollback adding enum value to PostgreSQL");
},
};