diff --git a/plugins/catalog-backend/migrations/20201007201501_index_entity_search.js b/plugins/catalog-backend/migrations/20201007201501_index_entity_search.js index be700a324a..ea26067a06 100644 --- a/plugins/catalog-backend/migrations/20201007201501_index_entity_search.js +++ b/plugins/catalog-backend/migrations/20201007201501_index_entity_search.js @@ -21,17 +21,11 @@ */ exports.up = async function up(knex) { await knex.schema.alterTable('entities_search', table => { - const options = knex.client.config.client.includes('mysql') ? { indexType: 'FULLTEXT', } : {} - table.index( - ['key'], - 'entities_search_key', - options - ); - table.index( - ['value'], - 'entities_search_value', - options - ); + const options = knex.client.config.client.includes('mysql') + ? { indexType: 'FULLTEXT' } + : {}; + table.index(['key'], 'entities_search_key', options); + table.index(['value'], 'entities_search_value', options); }); }; diff --git a/plugins/catalog-backend/migrations/20210302150147_refresh_state.js b/plugins/catalog-backend/migrations/20210302150147_refresh_state.js index c3c3dc3f12..1c8081c0ef 100644 --- a/plugins/catalog-backend/migrations/20210302150147_refresh_state.js +++ b/plugins/catalog-backend/migrations/20210302150147_refresh_state.js @@ -91,8 +91,8 @@ exports.up = async function up(knex) { await knex.schema.createTable('refresh_state_references', table => { const textColumn = isMySQL - ? table.string.bind(table) - : table.text.bind(table); + ? table.string.bind(table) + : table.text.bind(table); table.comment('Edges between refresh state rows'); table