tlberglund/gradle-liquibase-plugin

Inserting change set filename into database change log results in build failure for long file paths

eamason9629 opened this issue · 2 comments

We're getting the following error:
Liquibase Update Failed: ORA-12899: value too large for column "SCHEMA"."DATABASECHANGELOG"."FILENAME" (actual: 203, maximum: 200)

Would it be possible to truncate the filename and have this be a warning instead of a build failure?

Or, since we're providing the files in the change log as relative, only have the relative path instead of the full path? That's what's really causing this failure.

We've tried to make the liquibase plugin a thin wrapper for liquibase itself, so my first guess is that the filenames are handled there, but I'd like to do some more testing on my end to be sure.

In the mean time, you could work around the problem by altering the databasechangelog table to increase the size of the filename column.

Steve

Liquibase has made the filename column of the databasechangelog table 255 charcters in a later release. The Gradle Liquibase plugin now supports Liquibase 3.3.2, so this problem should be fixed for now.