Describe the bug
The Foreign Key constraint is not set to cascade delete in the data base for inline relations. Even though the relation is marked with "onDelete: CASCADE"
To Reproduce
Steps to reproduce the behavior:
Define a data model containing a one-to-many relation between two tables
Mark the relation on the parent table as cascade delete
Run prisma deploy
Expected behavior
The Foreign Key contraint created for the relation to be set to cascade delete.
Screenshots
Versions (please complete the following information):
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.
Describe the bug The Foreign Key constraint is not set to cascade delete in the data base for inline relations. Even though the relation is marked with "onDelete: CASCADE"
To Reproduce Steps to reproduce the behavior:
Expected behavior The Foreign Key contraint created for the relation to be set to cascade delete.
Screenshots
Versions (please complete the following information):
prisma
CLI: prisma/1.34.12 (windows-x64) node-v14.19.0Additional context The columns on the child on which the FK is set, are also not marked as non-null, even though they are not nullable in the model.