In this Jira item (https://liquibase.jira.com/browse/CORE-875) it says that includeObjects/excludeObjects has been added for generateChangeLog in the command line utility. I’m trying to use it with generateChangeLog but Liquibase (3.5.0) says that includeObjects is an unknown parameter. Should this parameter work with generateChangeLog or only with diffs?
For others seeing this - I have confirmed that I can use the includeObjects/excludeObjects with the generateChangeLog Ant task, but not with the Liquibase command line.
I haven’t looked into it deeply, but if it is possible to use those options with the Ant task, it might be a very simple code change to get it working from the command line.
Nathan has closed CORE-2847 - it appears you just need to put the arguments in the correct place on the command line.
The --includeObjects and --excludeObjects argument is specific to diffChangeLog and generateChangeLog, so it goes after the command. Like: "liquibase --changeLogFile= generateChangeLog --includeObjects=DEPT"
I’d like you ask you for advice…
until now I has such cmdline:
liquibase -changeLogFile=test.informix.sql generateChangeLog
now I want to exclude one table … syscolformats
I tried to add --excludeObjects=“syscolformats” but without success.
What should my cmdline look like?
Could you show me exactly your commandline you tried? As mentioned the include and exclude statements have to go right after the generateChangeLog command as that command consumes the --excludeObjects
Also, what DB platform are you using (Oracle, mysql, etc?)
I use Informix DB platform. I want to exclude syscolformats table.
I tried to run:
/liquibase --changeLogFile=informix.sql generateChangeLog --excludeObjects=syscolformats
The command ends in error…
Unexpected command parameter: ‘–excludeObjects=syscolformats’
@roze, thanks for the reply, now that I have my informix environment setup I have one more ask now that I understand the issue better…we are just trying to exclude a table named
right? Wonder if
needs additional items like database.syscolformats