Skip to content

Commit 64beea2

Browse files
authored
[Database] Switch to cascading deletes in the DB layer where possible + some cleanup (#4312)
* Switch to cascading deletes in the DB layer where possible. * Remove extra ON DELETE CASCADE from artifact_branches table. * Restore ON CASCADE DELETE for h2 and pg on FK_artifact_branches_1 * Restore functionality of deleteGroup: there is no FK from artifacts to groups yet * Use consistent column names for names/keys and values * Rename prop_name and prop_value in validate-files.sh
1 parent c6ab651 commit 64beea2

16 files changed

+411
-535
lines changed

app/src/main/java/io/apicurio/registry/storage/RegistryStorage.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ void updateArtifactRule(String groupId, String artifactId, RuleType rule, RuleCo
568568
void updateGroupMetaData(GroupMetaDataDto group) throws GroupNotFoundException, RegistryStorageException;
569569

570570
/**
571-
* Deletes a group intified by the given groupId and DELETES ALL resources related to this group
571+
* Deletes a group identified by the given groupId and DELETES ALL resources related to this group
572572
*
573573
* @param groupId (optional)
574574
* @throws GroupNotFoundException

app/src/main/java/io/apicurio/registry/storage/impl/sql/AbstractSqlRegistryStorage.java

+43-128
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)