liquibase / liquibase-gradle-plugin

A Gradle plugin for Liquibase
Other
197 stars 57 forks source link

Generate Changelog with defaultSchemaName not possible #130

Open sirius322 opened 10 months ago

sirius322 commented 10 months ago

I have updated Liquibase from 4.17.0 to 4.23.1 and the plugin from 2.0.4 to 2.2.0.

Now I have trouble migrating my activity for generating a changelog from an existing schema. Before the update I used the defaultSchemaName argument. With the new version a changelog with a dummy changeset is being generated. The current source code states that the liquibase command doesn't take the default-schema-name argument.

However, when used directly liquibase generate-changelog --help still lists the argument and works as expected when applied directly.

  1. Is this a bug or is there a reason why defaultSchemaName is not supported by the Gradle plugin?
  2. Is there any workaround?

Two things that I have tried so far :

stevesaliman commented 9 months ago

At the time I last updated the plugin, Liquibase 4.16.1 was current, and the default-schema-name was not part of that release from what I can tell. It isn't in the source code for Liquibase (hence my comment in the plugin), and it doesn't come back when I do liquibase generate-changelog --help.

The solution is to update the plugn again to sync it up with the latest CLI. If I'm lucky, they only added options and didn't remove any...