Skip to content

Issue in TableRepository.java #25491

@mohityadav766

Description

@mohityadav766
  • 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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions