Postgres Upgrade: Service Code Changes

Code changes required once Postgres is upgraded


The page contains changes needed in code after Postgres is upgraded to version 14.


  1. Update the postgresql library as given in the below snippet:

  1. Update the flyway client library as per details given below:

  1. Update the flyway Dockerfile and file as given below:

COPY ./migration/main /flyway/sql
COPY /usr/bin/
RUN chmod +x /usr/bin/
ENTRYPOINT ["/usr/bin/"]
flyway -url=$DB_URL -table=$SCHEMA_TABLE -user=$FLYWAY_USER -password=$FLYWAY_PASSWORD -locations=$FLYWAY_LOCATIONS -baselineOnMigrate=true -outOfOrder=true migrate

Last updated

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.