Skip to content

Commit

Permalink
Swap the delete and constraint db lines
Browse files Browse the repository at this point in the history
  • Loading branch information
YanaDePauw committed May 3, 2024
1 parent 9f873e4 commit 8906f25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-- http://www.dspace.org/license/
--

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

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 @@ -6,7 +6,7 @@
-- http://www.dspace.org/license/
--

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

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 8906f25

Please sign in to comment.