To fix vulnerabilities I upgraded docker image version in my dockerfile:
old:
FROM liquibase/liquibase:4.4
new:
FROM liquibase/liquibase:4.20
But I started to get error:
addAfterColumn is not allowed on postgresql
I started to investigate this error and found out that in some changesets addAfterColumn
is used.
<changeSet author="***" id="***">
<addColumn tableName="my_table" >
<column afterColumn="existing_column"
name="new_column"
type="varchar(255)" >
<constraints nullable="true"/>
</column>
</addColumn>
</changeSet>
</databaseChangeLog>
I also found this topic:
https://github.com/liquibase/liquibase/issues/3091
So I just removed afterColumn
but I am not sure what side effects could I experience ? I am not familiar about reason to use afterColumn
but if it is removed it could be useless but I can't find any useful information.
Are there any other options to fix the issue ? because editing liquibase scripts will break checksums for existing databases