# Restricting --diffType="data" to specific tables

**URL:** <https://forum.liquibase.org/t/restricting-difftype-data-to-specific-tables/1258>\
**Category:** General Discussion\
**Created:** [May 7, 2011, 12:13am UTC](https://forum.liquibase.org/t/restricting-difftype-data-to-specific-tables/1258 "2011-05-07T00:13:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chriswilliams11](https://avatars.discourse-cdn.com/v4/letter/c/3d9bf3/32.png) [@chriswilliams11](https://forum.liquibase.org/u/chriswilliams11)\
**Post date:** [May 7, 2011, 12:13am UTC](https://forum.liquibase.org/t/restricting-difftype-data-to-specific-tables/1258/1 "2011-05-07T00:13:00Z")

</div>

Is there any way to restrict diffType=“data” to specific tables when running&nbsp;generateChangeLog? We’re starting from mid-project with Liquibase and would like to generate a new change log and also dump some of our reference tables into the change log. Can this be done? It’s fine if these have to be done in separate steps and change logs.

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [May 7, 2011, 12:13am UTC](https://forum.liquibase.org/t/restricting-difftype-data-to-specific-tables/1258/2 "2011-05-07T00:13:00Z")

</div>

Not at this point, unfortunately. I believe there is a feature request in [liquibase.jira.com](http://liquibase.jira.com) for it that is probably in the 2.1 planning list.

Liquibase can reference csv files with the loadData changeSet, so you could use any other tool to output tables into CSV and add it to the changeset. Or do diffType=data and remove the data for the tables you don’t care about.

Nathan

---

<div class="post-metadata">

**Author:** ![un1430159166345r97id](https://avatars.discourse-cdn.com/v4/letter/u/ecc23a/32.png) [@un1430159166345r97id](https://forum.liquibase.org/u/un1430159166345r97id)\
**Post date:** [May 7, 2011, 12:13am UTC](https://forum.liquibase.org/t/restricting-difftype-data-to-specific-tables/1258/3 "2011-05-07T00:13:00Z")

</div>

Has this feature been implemented yet?

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [May 7, 2011, 12:13am UTC](https://forum.liquibase.org/t/restricting-difftype-data-to-specific-tables/1258/4 "2011-05-07T00:13:00Z")

</div>

There is now an --excludeObjects and --includeObjects flag which may allow you to do this.

Nathan
