Skip to content

Commit

Permalink
init db script
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-brennan2005 committed Jun 11, 2024
1 parent b7306ac commit d8e631a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deployment/init-db.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
migrate -path ../backend/migrations/ -database postgres://${SAC_DB_USERNAME}:${SAC_DB_PASSWORD}@${SAC_DB_HOST}:${SAC_DB_PORT}/${SAC_DB_NAME}?sslmode=disable -verbose up

0 comments on commit d8e631a

Please sign in to comment.