@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user