alter table {schema}.quotes drop constraint if exists quotes_status_valid; alter table {schema}.quotes add constraint quotes_status_valid check ( status in ('draft', 'sent', 'accepted', 'rejected', 'expired', 'cancelled', 'invoice_created') );