Skip to content

Commit

Permalink
do not check person_uniqueness before update - messes with the triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
leondutoit committed Jun 30, 2022
1 parent 68691e7 commit 7c924a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/identities.sql
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ create or replace function person_uniqueness()
return new;
end;
$$ language plpgsql;
create trigger ensure_person_uniqueness before insert or update on persons
create trigger ensure_person_uniqueness before insert on persons
for each row execute procedure person_uniqueness();


Expand Down

0 comments on commit 7c924a4

Please sign in to comment.