Diff ChangeLog Mode does not detect column type differences

Hi Team,

I found, that from version 3.0.0, “diffChangeLog” output xml does not include column type differences. But the normal “diff” detects and writes these differences normally in plain text format (not xml).

I did some debugging and found that this functionality has been removed (commented out) in liquibase.diff.output.changelog.core.ChangedColumnChangeGenerator class.

What is your plan with this issue?

I’m currently using 2.0.5, and can’t upgrade without this.

Thanks,
Zoltan

I created https://liquibase.jira.com/browse/CORE-1433 to track the re-adding of it. It must have been lost in the code changes going from 2.x to 3.x. I’ll try to get it fixed soon.


Nathan

Hi,

this still seems to be a issue in 3.0.5, even though it is marked “fixed”. As far as I can see, diff still does not create a plain textfile.

I’m not quite sure what you mean. Can you give me more information on what you are calling with 3.0.5 and your expected vs. actual results?

Nathan

Hi Nathan,
Thank you for your efforts, now it works again!
Zoltán

I’m calling the liquibase.integration.ant.DiffDatabaseTask.
I expected an output as in 2.0.5 that has the following content:
Reference Database:
Target Database:
Product Name:
Product Version:
Missing Tables:
Unexpected Tables:
Missing Views:
Unexpected Views:
Changed Views:


What I get is a a file with changesets. It is the exact same output as DiffDatabaseToChangeLogTask.

Yes, that isn’t right. I fixed it in the code for 3.0.7. Sorry for the bug.


Nathan

Just tried 3.0.7 and it works perfectly. Thank you for fixing it!