Skip to content

Commit 6e0d752

Browse files
committed
fix postgres migration
1 parent da20874 commit 6e0d752

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docker-compose.tmpl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ services:
509509
- redis
510510

511511
environment:
512-
DATABASE_URL: postgres://postgres:${POSTGRESQL_SECRET:-password}@postgres:5432/greenlight-v3
512+
DATABASE_URL: postgres://postgres:${POSTGRESQL_SECRET:-password}@postgres:5432/greenlight
513513
REDIS_URL: redis://redis:6379
514514
{{ if $ignore_tls_cert_errors }}
515515
BIGBLUEBUTTON_ENDPOINT: http://10.7.7.1:48083/bigbluebutton/api

scripts/upgrade

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ else
4242

4343
if [ -d "./postgres-data" ]; then
4444
echo "folder ./postgres-data still exists and probably uses postgres 12. migrating to a fresh postgres 16 data directory..."
45+
docker compose down --remove-orphans
4546
./scripts/postgres-migrate ./postgres-data ./data/postgres 16
4647
mv postgres-data postgres-data.automigrate-bak
4748
fi

0 commit comments

Comments
 (0)