diff --git a/lib/migrate.js b/lib/migrate.js index 4ed5adc..836a24b 100644 --- a/lib/migrate.js +++ b/lib/migrate.js @@ -306,6 +306,12 @@ const parseDifference = function(previousState, currentState) if (df.rhs.indexes) for(let _i in df.rhs.indexes) { + actions.push(_.extend({ + actionType: 'removeIndex', + tableName: tableName, + depends: [ tableName ] + }, _.clone(df.rhs.indexes[_i]))); + actions.push(_.extend({ actionType: 'addIndex', tableName: tableName,