fix sql script run order (#142)

seed-db runs before seed-user leaving the database unpopulated when building the docker contaienrs. This is because they have the same number prefix.

Co-authored-by: sighup <ttrkk9@proton.me>
Reviewed-on: #142
Co-authored-by: sighup <sighup@noreply.fsdfsd.net>
Co-committed-by: sighup <sighup@noreply.fsdfsd.net>
pull/143/head
sighup 2023-04-23 02:39:33 +00:00 committed by Aevann
parent 0d94608f24
commit bde73fc665
1 changed files with 2 additions and 2 deletions

View File

@ -38,8 +38,8 @@ services:
command: ["postgres", "-c", "log_statement=all"]
volumes:
- "./schema.sql:/docker-entrypoint-initdb.d/00-schema.sql"
- "./seed-users.sql:/docker-entrypoint-initdb.d/10-seed-users.sql"
- "./seed-db.sql:/docker-entrypoint-initdb.d/10-seed-db.sql"
- "./seed-users.sql:/docker-entrypoint-initdb.d/01-seed-users.sql"
- "./seed-db.sql:/docker-entrypoint-initdb.d/02-seed-db.sql"
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
ports: