We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This tool is great, but it does not seem to be able to support partial indexes. Eg:
indexes: [ { unique: true, fields: ['col1', 'col2'], where: { deletedAt: null } } ]
The text was updated successfully, but these errors were encountered:
I had a look and the whole reason it wasnt working, was this line here:
sequelize-mig/lib/models.js
Line 138 in 94ae0fb
that if statement breaks the ability for this tool to correctly generate indexes
if i comment it out, everything seems to magically work, what is the point of this statement?
also i imagine we need:
if (idx.where) options.where = idx.where; here:
if (idx.where) options.where = idx.where;
sequelize-mig/lib/parser.js
Line 27 in 94ae0fb
Sorry, something went wrong.
No branches or pull requests
This tool is great, but it does not seem to be able to support partial indexes.
Eg:
The text was updated successfully, but these errors were encountered: