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

Add Database Schema for Resource Sharing Policies Management Component #4170

Conversation

BimsaraBodaragama
Copy link
Member

@BimsaraBodaragama BimsaraBodaragama commented Jan 6, 2025

Purpose

Introduce database schema to support resource-sharing policies and their associated attributes. This resolves the requirement for managing organizational resource-sharing capabilities and ensuring consistency across multiple databases.

Goals

Provide robust support for defining, managing, and maintaining resource-sharing policies and their attributes, ensuring compatibility with diverse database systems.

Approach

Created two tables, UM_RESOURCE_SHARING_POLICY and UM_SHARED_RESOURCE_ATTRIBUTES, to store resource-sharing policies and their attributes.
Added primary and foreign keys for referential integrity, with cascading delete support.
Implemented sequences and triggers for automatic ID generation where applicable (DB2, Oracle, PostgreSQL).

Testing

Ensured schema compatibility with DB2, H2, Informix, MSSQL, MySQL, Oracle, Oracle RAC, PostgreSQL, and MySQL Cluster.


Related Issue

Add Database Schema for Managing Resource Sharing Policies #22332

@BimsaraBodaragama BimsaraBodaragama self-assigned this Jan 7, 2025
@jenkins-is-staging
Copy link

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/12864912269

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/12864912269
Status: success

Copy link

@jenkins-is-staging jenkins-is-staging left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/12864912269

@SujanSanjula96 SujanSanjula96 merged commit 511b631 into wso2:4.10.x Jan 20, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants