drop constraint then create postgres code example Example: remove contraints command psql ALTER TABLE table_name DROP CONSTRAINT constraint_name;