-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Description
- We are storing table constraints against table_entity json , even when we are doing addConstraintRelationship(table, table.getTableConstraints()); so even though when a table is deleted that relation is removed , we have a table that might be containing those tableConstraints. So in that case if a table is deleted we might run into issues.
- In TableRepostiory.java befor calling addConstraintRelationship(table, table.getTableConstraints()); we should be calling table.setConstraint() and refor table relations not to be stored in table_entity json
But do note this needs to happen only for referred columns coming that has table to table relations. other things can be stored in the tableContraints in table_entity.json - We need to write migrations for removing table to table relation referred columns from table , since they might already be stored in relationship table
Copilot
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status