Skip to content

Commit 0d54635

Browse files
fornoachrinza
authored andcommitted
feat: Avoid 'USING ' on FULLTEXT index
Signed-off-by: FORNO <[email protected]>
1 parent 21e3bba commit 0d54635

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/migration.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ function mixinMigration(MySQL, mysql) {
369369
const indexName = self.client.escapeId(propName);
370370
let type = '';
371371
let kind = '';
372-
if (i.type) {
372+
if (i.type && i.kind.toUpperCase() !== 'FULLTEXT') {
373373
type = 'USING ' + i.type;
374374
}
375375
if (kind && type) {
@@ -393,7 +393,7 @@ function mixinMigration(MySQL, mysql) {
393393
const iName = self.client.escapeId(indexName);
394394
let type = '';
395395
let kind = '';
396-
if (i.type) {
396+
if (i.type && i.kind.toUpperCase() !== 'FULLTEXT') {
397397
type = 'USING ' + i.type;
398398
}
399399
if (i.kind) {

0 commit comments

Comments
 (0)