Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
fix: add index for Sentence's localeId
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKohler committed Dec 24, 2020
1 parent dbee083 commit 178fecf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions server/migrations/20202024011426-add-sentence-localeId-index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
'use strict';

module.exports = {
up: (queryInterface) => queryInterface.addIndex(
'Sentences',
['localeId'],
{
indexName: 'SentenceLocaleIndex',
indicesType: 'FULLTEXT',
}
),
down: (queryInterface) => queryInterface.removeIndex('Sentences', 'SentenceLocaleIndex'),
};

0 comments on commit 178fecf

Please sign in to comment.