D1: recreate the production database with a US primary
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
- #562 của @tombeckenham — đã đóng, không merge
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- typescript
Hướng nghiên cứu
Read wrangler.jsonc and the deployment pipeline, then check whether #553 is restored before attempting the cutover. Pause cron writes, export modelschemas with wrangler d1 export, import into modelschemas-us, and spot-check the listed tables. Deploy the config change, restore crons, verify GET /v1/status and one sync request, then retain the old database for a week.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
D1 fixes a database's primary location when the database is created, and it can't be changed later. Production should have a US primary. Recreate the database in the same Cloudflare account with a location hint and copy the data across. Users, API keys, subscriptions and history are all kept.
Steps
-
wrangler d1 info modelschemasto record the current location. →running_in_region: OC, 1.01 GB, 19 tables (2026-11-04). -
wrangler d1 create modelschemas-us --location enam→21cbfe2e-5a9d-41a8-929e-74089a08230b, region ENAM.enamkeeps the primary beside theUS_EGRESSDurable Object the cron writers fetch through. - Pause the crons so no writes land during the copy (deploy with an empty
triggers.crons, or disable them in the dashboard). Writes only come from the crons, plus auth and subscription calls, which are rare. -
wrangler d1 export modelschemas --remote --output prod.sql, thenwrangler d1 execute modelschemas-us --remote --file prod.sql. - Spot-check row counts per table (
models,schema_versions,changes,subscriptions, better-auth tables). - Point
d1_databases[0].database_idinwrangler.jsoncat the new database. Keepdatabase_namein step withdeploy:ci, which runs migrations by database name. (PR on branch554-d1-recreate-the-production-database-with-a-us-primary; merge only after the cutover deploy.) - Deploy, restore the crons, check
GET /v1/status, run onePOST /v1/admin/sync/openrouter. - Keep the old database for a week, then delete it.
Needs the deploy pipeline back first (#553), or a manual bun run deploy.
Don't reseed instead of copying. The seed doesn't recreate auth users, API keys, agent registrations, webhook subscriptions or checkpoints, or the changes history that /v1/changes cursors point into.
- Ngôn ngữ chính
- TypeScript
- Star
- 0
- Fork
- 1
- Merge trung bình
- 5 giờ 40 phút
- Pull request đã merge (30 ngày)
- 193
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của TanStack/schemas
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của TanStack/schemas
Issue tương tự
-
[Site] Active section detection should respect scroll-margin-topCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởarea/web reproduced type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
anomalyco/opencode#65384 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
swc-project/swc-ai-issues#1001 ·
-
Add: Da Vinci Asia VietnamĐang mởcheck:passed streams:add
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
fix(table): CollapseColumn uses wrong caret icon for expandable row toggleCó thể đã có người làm @redhat-chai-bot đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
patternfly/patternfly-react#12727 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CLI OAuth login fails behind an authenticating proxy: GET /api/v1/user omits Proxy-AuthorizationĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
lightdash/lightdash#33086 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày