Skip to content

Deploy: confirm D1 auto-provision writes database_id back (wrangler 4.69 did not) #6

Description

@aharlap

Observed during the 2026-07-06 live smoke test on wrangler 4.69: pnpm run deploy auto-provisioned D1 (uuid 0985ad2b…) and used it for that deploy + remote migrations successfully, but did NOT write database_id back into wrangler.toml. Teardown then needed the id injected manually to resolve the remote DB.

Impact: unclear whether a second pnpm run deploy from the same clone reuses the DB (server-side binding association) or provisions a duplicate. Button-deploy is unaffected (each deployer gets a fresh copy).

Action: on the next deploy, verify a repeat deploy reuses the same DB; if not, either upgrade the pinned/dev wrangler (write-back improved after 4.69) or document a one-time wrangler d1 create proof + paste-id step for CLI self-hosters who deploy repeatedly. Non-blocking; the one-click and first-CLI-deploy paths both work.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions