Having a constraint named “c” and a table named “t” the generated SQL to drop the contraint is currently, using the PostgreSQL dialect: alter table if exists public.t constraintif exists c Leading to ERROR: syntax error at or near "constraintif" at character[..] Investigating, it seems the problem is not specific to PostgreSQL but to any DB supporting “if exists” syntax. |