Skip to content

Commit 37cce43

Browse files
Digidaiclaude
andcommitted
fix(ci): use D1 database name instead of ID for schema migration
wrangler d1 execute expects the database name ("mails"), not the UUID. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6103289 commit 37cce43

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/deploy-worker.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ jobs:
3939
env:
4040
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4141
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
42-
D1_ID: ${{ secrets.D1_DATABASE_ID }}
43-
run: cd worker && npx wrangler d1 execute "$D1_ID" --file=schema.sql --remote
42+
run: cd worker && npx wrangler d1 execute mails --file=schema.sql --remote
4443

4544
- name: Deploy to Cloudflare Workers
4645
uses: cloudflare/wrangler-action@v3

0 commit comments

Comments
 (0)