Skip to content
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

Missing Foreign Key Constraint in DB2 Script for UM_HYBRID_USER_ROLE Table #22099

Open
BimsaraBodaragama opened this issue Dec 20, 2024 · 0 comments

Comments

@BimsaraBodaragama
Copy link
Member

Description

In the DB2 script for creating the UM_HYBRID_USER_ROLE table, the foreign key constraint:

FOREIGN KEY (UM_DOMAIN_ID, UM_TENANT_ID) REFERENCES UM_DOMAIN(UM_DOMAIN_ID, UM_TENANT_ID) ON DELETE CASCADE

is missing. This foreign key is present in other database scripts but not in the DB2 script, which causes inconsistency in database schema definitions across environments.

Steps to Reproduce

  1. Compare the DB2 script for UM_HYBRID_USER_ROLE creation with scripts for other databases (e.g., MySQL, H2, Informix, MSSQL, MySQL Cluster, Oracle, Oracle RAC, PostgreSQL).
  2. Observe that the foreign key constraint for UM_DOMAIN_ID and UM_TENANT_ID referencing the UM_DOMAIN table is absent in the DB2 script.

Version

7.0, 7.1 (Could be in previous versions as well)

Environment Details (with versions)

Database: DB2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant