Skip to content

Commit 8ee6a54

Browse files
committed
chore: DB name postgres -> ferry [skip ci]
1 parent b8005c2 commit 8ee6a54

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.devcontainer/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ services:
2525
- postgres-data:/var/lib/postgresql/data
2626
environment:
2727
POSTGRES_USER: postgres
28-
POSTGRES_DB: postgres
28+
POSTGRES_DB: ferry
2929
POSTGRES_PASSWORD: postgres
3030

3131
# Add "forwardPorts": ["5432"] to **devcontainer.json** to forward PostgreSQL locally.

config/dev_sync_db.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# DEV CONFIG
22
# This configuration is used to enable syncing the local postgres database in a dev environment.
33

4-
database_connect_string: "postgresql://postgres:postgres@db:5432/postgres"
4+
database_connect_string: "postgresql://postgres:postgres@db:5432/ferry"
55
release: false
66
seasons: null
77
use_cache: true

ferry/database/sync_db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def sync_db(tables: dict[str, pd.DataFrame], database_connect_string: str):
129129

130130
print("\nReindexing...")
131131
conn.execution_options(isolation_level="AUTOCOMMIT")
132-
conn.execute(text("REINDEX DATABASE postgres;"))
132+
conn.execute(text("REINDEX DATABASE ferry;"))
133133
print("\033[F", end="")
134134
print("Reindexing... ✔")
135135

0 commit comments

Comments
 (0)