-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
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
Database migration should create SQL constraints for relations #2332
Comments
We'll do |
@bajtos @nabdelgadir I am able to create foreign key constraints by adding |
@authenticode You may be interested in loopbackio/loopback-connector#170 which forces migrations to be run in a series so you can effectively use the |
This issue has been marked stale because it has not seen activity within six months. If you believe this to be in error, please contact one of the code owners, listed in the |
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the |
See #1718 for background context.
As a user building an LB4 application with HasMany BelongsTo or HasOne relation, I want
lb4 automigrate
to define SQL constraints (foreign key, unique) in such way that referential integrity will be correctly enforced by the database.Acceptance criteria
Ensure the new tests are executed as part of connector test suite and that they pass on our CI for the following connectors
Depending on how much work the following connectors will require, either improve them as part of this story or create follow-up stories:
The text was updated successfully, but these errors were encountered: