Skip to content

Commit

Permalink
Merge pull request #60 from KonferCA/fix/42/migration-order
Browse files Browse the repository at this point in the history
Fix/42/migration order
  • Loading branch information
juancwu authored Nov 15, 2024
2 parents f2addc0 + fcf1334 commit b9bd8cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/scripts/deploy-preview.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ else
fi

# Database migrations
echo "Fix migrations from timestampd to sequential"
goose fix -dir .sqlc/migrations
echo "Run migrations"
goose -dir .sqlc/migrations postgres \
"postgres://$DB_USER:$DB_PASSWORD@$DB_HOST:$DB_PORT/$DB_NAME?sslmode=$DB_SSLMODE" up
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ jobs:
echo "Running deploy-preview.sh"
chmod +x deploy-preview.sh
./deploy-preview.sh
clean_up

0 comments on commit b9bd8cf

Please sign in to comment.