Here are two examples of how to define a composite primary key for some table using Liquibase.
- Add the composite primary key up front during table construction (preferred).
<changeSet id="1">
<createTable tableName="some_table">
<column name="id_1" type="varchar_ignorecase">
<constraints nullable="false" primaryKey="true" primaryKeyName="PK_SOME_TABLE"></constraints>