hydra/src/sql/upgrade-33.sql
2015-06-17 21:39:28 +02:00

8 lines
210 B
SQL

create table FailedPaths (
path text primary key not null
);
create rule IdempotentInsert as on insert to FailedPaths
where exists (select 1 from FailedPaths where path = new.path)
do instead nothing;