diff --git a/README.md b/README.md index 7110024..23087bb 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ +# List of changes from Scimonster fork +- Indexes + - Handle "type" option = 'UNIQUE|FULLTEXT|SPATIAL' + + + + # sequelize-auto-migrations Migration generator && runner for sequelize diff --git a/lib/migrate.js b/lib/migrate.js index 3cc5fb9..8b41eae 100644 --- a/lib/migrate.js +++ b/lib/migrate.js @@ -154,6 +154,8 @@ const parseIndex = function(idx) // @todo: UNIQUE|FULLTEXT|SPATIAL if (idx.unique) options.type = options.indicesType = 'UNIQUE'; + else if (idx.type) + options.type = options.indicesType = idx.type; if (idx.method) options.indexType = idx.type; // Set a type for the index, e.g. BTREE. See the documentation of the used dialect