Disabling FK in Liquibase

April 14, 2016

I use this for disabling checks when load data from CSV files in Liquibase.

Just use:

<sql>SET FOREIGN_KEY_CHECKS=0;</sql>

for disable check, and use this for enable:

<sql>SET FOREIGN_KEY_CHECKS=1;</sql>

Sample:

comments powered by Disqus