Skip to content

Commit

Permalink
Merge pull request #268 from MinaFoundation/PM-1980-kyc-update-databa…
Browse files Browse the repository at this point in the history
…se-migration-command

PM-1980 - KYC - Update database migration command
  • Loading branch information
kaozenn authored Sep 12, 2024
2 parents 4e7799c + 3e0771b commit fe0b6c6
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions kyc-management-app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,10 @@ spec:
runAsUser: 0
#NOTE: This is a temporary solution until the application manages the DB population and migrations
command:
- sh
- -c
- |
apk --update add postgresql-client
psql $DATABASE_URL -f /db/prisma/migrations/0_init/migration.sql --set=ON_ERROR_STOP=1
psql $DATABASE_URL -f /db/seed.sql --set=ON_ERROR_STOP=1
echo DB migration done.
- npx
- prisma
- migrate
- deploy
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand Down

0 comments on commit fe0b6c6

Please sign in to comment.