From bde73fc665d69b85b110b24eff238523e0d17c82 Mon Sep 17 00:00:00 2001 From: sighup Date: Sun, 23 Apr 2023 02:39:33 +0000 Subject: [PATCH] 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 Reviewed-on: https://fsdfsd.net/rDrama/rDrama/pulls/142 Co-authored-by: sighup Co-committed-by: sighup --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 10448dc27..bc5a5d2c0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: