You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 22ebcc7
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/integrations/cloudflare.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -244,6 +244,7 @@ Create `wrangler.jsonc` in your project root with the resource IDs from step 1:
244
244
"binding":"DB",
245
245
"database_name":"my-app-db",
246
246
"database_id":"<your-database-id>",
247
+
"migrations_dir":"./db/migrations",
247
248
},
248
249
],
249
250
"kv_namespaces": [
@@ -268,10 +269,10 @@ Only include the bindings your app actually uses. You can also add service bindi
268
269
If your app uses D1, apply migrations before deploying:
269
270
270
271
```bash
271
-
wrangler d1 migrations apply DB --remote
272
+
wrangler d1 migrations apply my-app-db --remote
272
273
```
273
274
274
-
This uses the same `db/migrations/` directory that Void uses locally.
275
+
This uses the same `db/migrations/` directory that Void uses locally.`my-app-db` is the database name from your `wrangler.jsonc`; using the database name avoids accidentally applying migrations to the wrong binding.
0 commit comments