Skip to content

Commit

Permalink
build: update migrate-entrypoint to handle incorrect nulllable
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Oct 3, 2023
1 parent 5ef6b17 commit a9537f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/migrate-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ fi

# 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) \
VALUES (20386219, 'svcfmtm', 'MAPPER') \
-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;"

exec "$@"

0 comments on commit a9537f5

Please sign in to comment.