fix(stats): make unique users migration idempotent
Some checks are pending
deploy / deploy (push) Waiting to run

This commit is contained in:
Adam 2026-06-21 04:38:47 -05:00
parent 233d065dd5
commit 6f0e934573
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
5 changed files with 31 additions and 4 deletions

View file

@ -47,7 +47,7 @@ jobs:
VITE_SENTRY_DSN: ${{ vars.WEB_SENTRY_DSN }}
VITE_SENTRY_RELEASE: web@${{ github.sha }}
- run: bun sst shell --stage=${{ github.ref_name }} -- bun run --cwd packages/stats/core db:migrate
- run: bun sst shell --stage=${{ github.ref_name }} -- bun run --cwd packages/stats/core db:ensure-unique-users
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
PLANETSCALE_SERVICE_TOKEN_NAME: ${{ secrets.PLANETSCALE_SERVICE_TOKEN_NAME }}