feat: Avoid 'USING ' on FULLTEXT index

Signed-off-by: FORNO <forno@xmaho.link>
This commit is contained in:
FORNO 2022-09-12 15:49:29 +09:00 committed by Rifa Achrinza
parent 21e3bba4c4
commit 0d546359a7
1 changed files with 2 additions and 2 deletions

View File

@ -369,7 +369,7 @@ function mixinMigration(MySQL, mysql) {
const indexName = self.client.escapeId(propName);
let type = '';
let kind = '';
if (i.type) {
if (i.type && i.kind.toUpperCase() !== 'FULLTEXT') {
type = 'USING ' + i.type;
}
if (kind && type) {
@ -393,7 +393,7 @@ function mixinMigration(MySQL, mysql) {
const iName = self.client.escapeId(indexName);
let type = '';
let kind = '';
if (i.type) {
if (i.type && i.kind.toUpperCase() !== 'FULLTEXT') {
type = 'USING ' + i.type;
}
if (i.kind) {