Skip to content
Merged
3 changes: 2 additions & 1 deletion db/Dockerfile.liquibase.local
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM liquibase/liquibase
FROM liquibase/liquibase:5.0
RUN lpm add postgresql --global
ADD . /liquibase
EXPOSE 8080
USER root
3 changes: 2 additions & 1 deletion db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ This guide will help you build a local instance of PostGIS, set up the database,
1. **Build the Liquibase Docker Image** :
Create a Dockerfile.liquibase.local with the following content:

FROM liquibase/liquibase
FROM liquibase/liquibase:5.0
RUN lpm add postgresql --global
COPY ./scripts ./scripts
COPY ./main-changelog*.json .
COPY ./liquibase.properties .
Expand Down
17 changes: 0 additions & 17 deletions db/app_wf1_prev-changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -1811,23 +1811,6 @@
"rollback": [
]
}
},
{
"changeSet": {
"id": "01_00_42_00",
"author": "ssylver",
"tagDatabase": { "tag": "version_01_00_42_00" },
"changes": [
{
"sqlFile": {
"dbms": "postgresql", "endDelimiter": ";",
"path": "scripts/01_00_42/00/ddl/proxy_wf1_prev_rest.alter_search_path.sql"
}
}
],
"rollback": [
]
}
}
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-- Add public to proxy_wf1_prev_rest's search_path so PostGIS functions in public schema resolve correctly
ALTER ROLE proxy_wf1_prev_rest IN DATABASE '${WFPREV_DATABASE_NAME}'
ALTER ROLE proxy_wf1_prev_rest IN DATABASE ${WFPREV_DATABASE_NAME}
SET search_path = wfprev, public;
17 changes: 17 additions & 0 deletions db/wfprev-changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,23 @@
}
]
}
},
{
"changeSet": {
"id": "01_00_42_00",
"author": "ssylver",
"tagDatabase": { "tag": "version_01_00_42_00" },
"changes": [
{
"sqlFile": {
"dbms": "postgresql", "endDelimiter": ";",
"path": "scripts/01_00_42/00/ddl/proxy_wf1_prev_rest.alter_search_path.sql"
}
}
],
"rollback": [
]
}
}
]
}
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ services:
condition: service_healthy
networks:
- wfprev-network
env_file:
- .env

db:
image: postgis/postgis:16-3.4
Expand Down
Loading