Skip to content

Commit 625ddff

Browse files
authored
Make sure db seeds are executed in correct order (#2615)
1 parent ac296c1 commit 625ddff

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ services:
3535
- "5431:5432"
3636
env_file: *env_file
3737
volumes:
38-
- ./docker/db/seed.sql:/docker-entrypoint-initdb.d/seed.sql
39-
- ./docker/db/wallet-seed.sql:/docker-entrypoint-initdb.d/wallet-seed.sql
38+
# the prefix makes sure the seeds are executed in the correct order instead of alphabetical by default
39+
- ./docker/db/000_seed.sql:/docker-entrypoint-initdb.d/000_seed.sql
40+
- ./docker/db/001_wallet-seed.sql:/docker-entrypoint-initdb.d/001_wallet-seed.sql
4041
- db:/var/lib/postgresql/data
4142
labels:
4243
CONNECT: "localhost:5431"
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)