Last active
August 29, 2015 14:03
-
-
Save dguardado/2ed37e0062411c8530b2 to your computer and use it in GitHub Desktop.
Defining foreign key constraint directly in column
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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