Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:

services:
postgres:
image: postgres:13
image: postgres:17.7
env:
POSTGRES_PASSWORD: postgres
ports: [ "5432:5432" ]
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:

services:
postgres:
image: postgres:13
image: postgres:17.7
env:
POSTGRES_PASSWORD: postgres
ports: [ "5432:5432" ]
Expand Down
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Government data.

### Prerequisites:

- Install Postgres 13: https://www.postgresql.org/download/
- Install Postgres 17.7: https://www.postgresql.org/download/
- [The app](https://postgresapp.com/downloads.html) may be easier, just make sure to download the right version. It'll manage things for you and has a useful menulet where the server can be turned on and off. Don't forget to create a server if you go this route.
- Install Adoptium Java 17 (Temurin). Here's an easy way on Mac, using [jEnv](https://www.jenv.be/) to manage the active version:

Expand Down
4 changes: 2 additions & 2 deletions common/postgres-init.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CREATE DATABASE ecm;
CREATE DATABASE ecm_test;
CREATE ROLE ecmuser WITH LOGIN ENCRYPTED PASSWORD 'ecmpwd';
CREATE DATABASE ecm OWNER ecmuser;
CREATE DATABASE ecm_test OWNER ecmuser;
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ AS $$
VALUES (
nextval('linked_account_id_seq'),
user_id,
'RAS'::provider,
'RAS'::provider_enum,
'testToken',
current_timestamp + interval '3000 year',
external_user_id,
Expand Down
4 changes: 2 additions & 2 deletions local-dev/run_postgres.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Start up a postgres container with initial user/database setup.
POSTGRES_VERSION=14
POSTGRES_VERSION=17.7

start() {
echo "attempting to remove old $CONTAINER container..."
Expand All @@ -9,7 +9,7 @@ start() {
# start up postgres
echo "starting up postgres container..."
BASEDIR=$(dirname "$0")
docker create --name $CONTAINER --rm -e POSTGRES_PASSWORD=password -p "$POSTGRES_PORT:5432" postgres:$POSTGRES_VERSION -c listen_addresses='*'
docker create --name $CONTAINER --rm -e POSTGRES_PASSWORD=password -p "$POSTGRES_PORT:5432" postgres:${POSTGRES_VERSION} -c listen_addresses='*'
docker cp $BASEDIR/../common/postgres-init.sql $CONTAINER:/docker-entrypoint-initdb.d/docker_postgres_init.sql
docker start $CONTAINER

Expand Down