Skip to content

Commit

Permalink
build: additional logging to migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Oct 3, 2023
1 parent a9537f5 commit c8f2b13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/migrate-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ if [ -z "${FMTM_DB_NAME}" ]; then
exit 1
fi

echo "Crerating default svcfmtm user"
# Create default svc user
psql "postgresql://${FMTM_DB_USER}:${FMTM_DB_PASSWORD}@${FMTM_DB_HOST}/${FMTM_DB_NAME}" \
-c "INSERT INTO users (id, username, role, mapping_level, tasks_mapped, tasks_validated, tasks_invalidated) \
VALUES (20386219, 'svcfmtm', 'MAPPER', 'BEGINNER', 0, 0, 0) \
ON CONFLICT (id) DO NOTHING;"
echo "User creation complete"

exec "$@"

0 comments on commit c8f2b13

Please sign in to comment.