Skip to content

Commit

Permalink
106812: Add flyway migration to remove faulty rp entries
Browse files Browse the repository at this point in the history
  • Loading branch information
YanaDePauw committed Feb 19, 2024
1 parent 4942fd2 commit dddd500
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@

ALTER TABLE ResourcePolicy ADD CONSTRAINT resourcepolicy_eperson_and_epersongroup_not_nullobject_chk
CHECK (eperson_id is not null or epersongroup_id is not null) ;

DELETE FROM ResourcePolicy WHERE eperson_id is null and epersongroup_id is null;
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@

ALTER TABLE ResourcePolicy ADD CONSTRAINT resourcepolicy_eperson_and_epersongroup_not_nullobject_chk
CHECK (eperson_id is not null or epersongroup_id is not null) ;

DELETE FROM ResourcePolicy WHERE eperson_id is null and epersongroup_id is null;

0 comments on commit dddd500

Please sign in to comment.