Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyShuii committed Feb 1, 2025
1 parent d5c7151 commit c7d1dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/init_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ until pg_isready -U postgres; do
sleep 2
done

psql -U postgres -d postgres -c "CREATE DATABASE IF NOT EXISTS \"wild-transfer\""
psql -U postgres -d postgres -c "DO \$\$ BEGIN IF NOT EXISTS (SELECT 1 FROM pg_database WHERE datname = 'wild-transfer') THEN CREATE DATABASE \"wild-transfer\"; END IF; END \$\$"

LATEST_DUMP=$(ls -t '/dumps' | head -n 1)
if [ -z "$LATEST_DUMP" ]; then
Expand Down

0 comments on commit c7d1dd7

Please sign in to comment.