postgres DROP and create contraint code example
Example 1: postgres DROP and create contraint
ALTER TABLE table_name
ADD CONSTRAINT constraint_name UNIQUE (column1, column2, ... column_n);
Example 2: postgres DROP and create contraint
ALTER TABLE table_name
DROP CONSTRAINT constraint_name;