Cómo agregar restricción de verificación a una columna en Postgres
alter table foo
add constraint check_positive check (some_code in ('A','B'));
Tired Termite
alter table foo
add constraint check_positive check (some_code in ('A','B'));
ALTER TABLE foo
ADD CHECK (column_1 > 2);