Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 2 additions & 0 deletions lib/migrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down