-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
Description
In several instances, the on-delete action of the foreign keys in the database does not match the action specified in the dbcontext. This seems to be the case for keys that were initially created with a different action than their current state. It appears that there is no migration that correctly changes these key constraints.
Example
For example, the reference from ImageEntity to ItemEntity.
In one of the early migrations, this was modeled as RESTRICT:

Currently, this is modeled as CASCADE:

However, the actual database state is still NO_ACTION (= RESTRICT):

Context
Platform: 3.887.0
Catalog Module: 3.863.0
Database: SQL Server
Metadata
Metadata
Assignees
Labels
No labels