-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug when aup entity was updated/ removed from enrollment configur…
…ation entity
- Loading branch information
cgeorgilakis-grnet
committed
Feb 3, 2025
1 parent
7d7c7df
commit f3aae67
Showing
9 changed files
with
61 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -829,4 +829,27 @@ | |
</update> | ||
</changeSet> | ||
|
||
<changeSet author="[email protected]" id="update_group_aup"> | ||
<dropIndex indexName="KC_GROUP_CONFIG_IDX" tableName="GROUP_ENROLLMENT_CONFIGURATION"/> | ||
<dropIndex indexName="KC_GROUP_CONFIG_AID_IDX" tableName="GROUP_ENROLLMENT_CONFIGURATION"/> | ||
<dropForeignKeyConstraint baseTableName="GROUP_ENROLLMENT_CONFIGURATION" constraintName="fk_kc_grp_cfg_aid"/> | ||
<sql> | ||
UPDATE GROUP_AUP | ||
SET ID = ( | ||
SELECT f.ID | ||
FROM GROUP_ENROLLMENT_CONFIGURATION f | ||
WHERE f.AUP_ID = GROUP_AUP.ID | ||
LIMIT 1 | ||
); | ||
</sql> | ||
<dropColumn tableName="GROUP_ENROLLMENT_CONFIGURATION" columnName="AUP_ID"/> | ||
<addForeignKeyConstraint | ||
constraintName="fk_group_aup_enrollment_configuration" | ||
baseTableName="GROUP_AUP" | ||
baseColumnNames="ID" | ||
referencedTableName="GROUP_ENROLLMENT_CONFIGURATION" | ||
referencedColumnNames="ID" | ||
/> | ||
</changeSet> | ||
|
||
</databaseChangeLog> |