I would like to add a unique constraint on a column of type varchar using liquibase on a postgres table, but could not find an option. It does not allow me to use UPPER or LOWER for a column name. e.g.
<addUniqueConstraint columnNames="column_a, column_b, upper(column_c)" deferrable="true" initiallyDeferred="true" disabled="false" constraintName="constraint_uk" tableName="table_a"/>
2.1m questions
2.1m answers
60 comments
57.0k users