Skip to content

Add manual production database refresh for development - #2

Merged
ehsan0921 merged 1 commit into
mainfrom
release/database-copy
Oct 8, 2026
Merged

ehsan0921 merged 1 commit into
mainfrom
release/database-copy

Conversation

@ehsan0921

Copy link
Copy Markdown
Owner

Add a manual database-only action to replace development D1 data with a current production snapshot. It preserves development settings and the whitelist, clears sessions and delivery state, applies pending development migrations offline, and requires the deployed development snapshot safeguards. It never merges code, deploys Workers or writes production data.

Validation: 317 main regression tests pass locally; fictional SQLite roundtrips cover migration compatibility, data integrity and atomic settings-change refusal; mocked orchestration verifies production export-only access, a single development import and private-file cleanup. Development guards passed 348 regression tests and Worker integration checks and are already deployed to the separate test Worker. Workflow syntax and complete reachable history passed privacy scans.

Activation: enable the independent database-refresh repository variable only in the canonical repository. The development-refresh environment still needs CLOUDFLARE_API_TOKEN. No real database refresh was run.

@ehsan0921
ehsan0921 merged commit 8dd9e7c into main Oct 8, 2026
2 checks passed
@ehsan0921
ehsan0921 deleted the release/database-copy branch October 8, 2026 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant