diff --git a/plugins/catalog-backend/migrations/20241024104700_add_entity_ref_to_final_entities.js b/plugins/catalog-backend/migrations/20241024104700_add_entity_ref_to_final_entities.js index b68bf1d7ef..40d07a6860 100644 --- a/plugins/catalog-backend/migrations/20241024104700_add_entity_ref_to_final_entities.js +++ b/plugins/catalog-backend/migrations/20241024104700_add_entity_ref_to_final_entities.js @@ -28,6 +28,8 @@ exports.up = async function up(knex) { .comment( 'The entity reference of the entity that was created from the catalog processing', ); + + table.index('entity_ref', 'entity_ref_idx'); }); await knex @@ -53,6 +55,7 @@ exports.up = async function up(knex) { */ exports.down = async function down(knex) { await knex.schema.alterTable('final_entities', table => { + table.dropIndex('entity_ref_idx'); table.dropColumn('entity_ref'); }); };