Skip to content

Instantly share code, notes, and snippets.

@dguardado
Last active August 29, 2015 14:03
Show Gist options
  • Save dguardado/2ed37e0062411c8530b2 to your computer and use it in GitHub Desktop.
Save dguardado/2ed37e0062411c8530b2 to your computer and use it in GitHub Desktop.
Defining foreign key constraint directly in column
<changeSet author="liquibase-docs" id="addColumn-example">
<addColumn catalogName="cat"
schemaName="public"
tableName="person">
<column name="address" type="bigint">
<constraints references="address" foreignKeyName="fk_person_address" deleteCascade="true" />
</column>
</addColumn>
</changeSet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment