postgres drop not null constraint if exists code example Example: postgresql remove not null constraint alter table users alter column email drop not null;