D1: recreate the production database with a US primary
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
- #562 de @tombeckenham — cerrado sin fusionar
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- typescript
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 0
- Forks
- 1
- Merge medio
- 5 h 40 min
- PR fusionados (30 d)
- 193
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de TanStack/schemas
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
Los mantenedores suelen responder en 1 día
Todos los issues de TanStack/schemas
Issues similares
-
[Site] Active section detection should respect scroll-margin-topPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoarea/web reproduced type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
anomalyco/opencode#65384 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
swc-project/swc-ai-issues#1001 ·
-
Add: Da Vinci Asia VietnamAbiertocheck:passed streams:add
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
fix(table): CollapseColumn uses wrong caret icon for expandable row togglePosiblemente ocupada @redhat-chai-bot la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
patternfly/patternfly-react#12727 ·
Los mantenedores suelen responder en 1 día
-
CLI OAuth login fails behind an authenticating proxy: GET /api/v1/user omits Proxy-AuthorizationAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
lightdash/lightdash#33086 · 1 comentario ·
Los mantenedores suelen responder en 1 día