add forgotten index

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2021-04-28 12:18:41 +02:00
parent 8cde1bcb6e
commit e2000428ae
@@ -173,6 +173,7 @@ exports.up = async function up(knex) {
.string('value')
.nullable()
.comment('The corresponding value to match on');
table.index(['entity_id'], 'search_entity_id_idx');
table.index(['key'], 'search_key_idx');
table.index(['value'], 'search_value_idx');
});
@@ -201,6 +202,7 @@ exports.down = async function down(knex) {
table.index('originating_entity_id', 'relations_source_entity_id_idx');
});
await knex.schema.alterTable('search', table => {
table.dropIndex([], 'search_entity_id_idx');
table.dropIndex([], 'search_key_idx');
table.dropIndex([], 'search_value_idx');
});