-
Notifications
You must be signed in to change notification settings - Fork 13
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 schema generation doesn't create relations #21
Labels
help wanted
Extra attention is needed
Comments
Note : foreign key constraints in db, cascade setting are planned in the roadmap found here roadmap |
Thanks for filing. I'm going to edit the title to be more specific about what exactly doesn't get generated. |
Electron100
changed the title
Database schema generation seems to be broken
Database schema generation doesn't create foreign key constraints
Dec 25, 2022
I think |
Electron100
changed the title
Database schema generation doesn't create foreign key constraints
Database schema generation doesn't create relations
Nov 2, 2023
See #166 for the next part of this - cascading the delete. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First, I would like to thank you for this beautifull 😍project😍.
so i oppened this issue becuase i have tested this crate on two diffrent setups and both with backends(sqllite, pg). but the generated sql code for the relations is ether completly broken or there is something wrong with my setup.
basicly i copy pasted the getting started page and made the migrations. which in theory should generate all the necessary sql code for the relation ships. but it does not.
here is an example of the sql output: ⬇️
and here in this image visualized with dbeaver:
yet there are not relations(foreign keys, reffrences) generated for the tables.
here an example of what the generated sql code should be: ⬇️
and in this image visualized with dbeaver:
please keep in mind that in the example above i have not included any constraints or onupdate and ondelete and they are not generated ether.
P.S: for the example out put above,
butane
is version0.5.0
and featuresdefault
andpg
are enabled.The text was updated successfully, but these errors were encountered: