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
Use the MySQL datasource, and define indexes in the model definition like so and run migration
@model({ indexes: { uniqueIndex: { keys: { property: 1, anotherProperty: 1 } } } })
The indexes are not actually created in the database
Indexes are created in the database
The text was updated successfully, but these errors were encountered:
IIRC, model-level settings must be nested in settings object, see #2142
settings
@model({ settings: { indexes: { uniqueIndex: { keys: { property: 1, anotherProperty: 1 } } } } })
I am looking into ways how to make index and foreign key definition more ergonomic, see #2606
Sorry, something went wrong.
No branches or pull requests
Description / Steps to reproduce
Use the MySQL datasource, and define indexes in the model definition like so and run migration
Current Behavior
The indexes are not actually created in the database
Expected Behavior
Indexes are created in the database
The text was updated successfully, but these errors were encountered: