I'm using Liquibase to build a Postgres SQL table. I have a column I'd like to add a check constraint to in order to ensure that the values in this column are in my set of acceptable values. I've found some documentation on how to do an addCheckConstraint but this seems to be for adding a check constraint to an already existing column. I don't need to do that, I have not yet created this table and would like to just include in the same changeset that is creating the table.
In my XML this is what I've got, autocomplete got me here so I know the tag should be valid, but I'm unsure what to actually put in it.
<column name="size" type="varchar">
<constraints checkConstraint="what goes here?"
</column>
The "size" column can only contain the values "small", "medium", or "large". How can I accomplish this?