Skip to content

Commit 25509ab

Browse files
authored
[D1] Adding migrations_dir in Wrangler config chapter. (#17405)
* Adding migrations_dir in Wrangler config chapter. * Correcting description * Migration > MigrationS for consistency * Correction on directory name * Syntax correction for consistency.
1 parent 3fcd912 commit 25509ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/content/docs/workers/wrangler/configuration.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,10 @@ To bind D1 databases to your Worker, assign an array of the below object to the
400400

401401
- The ID of the database. The database ID is available when you first use `wrangler d1 create` or when you call `wrangler d1 list`, and uniquely identifies your database.
402402

403+
- `migrations_dir` <Type text="string" /> <MetaInfo text="optional" />
404+
405+
- The migration directory containing the migration files. By default, `wrangler d1 migrations create` creates a folder named `migrations`. You can use `migrations_dir` to specify a different folder containing the migration files. For more information, refer to [D1 Wrangler `migrations` commands](/workers/wrangler/commands/#migrations-create) and [D1 migrations](/d1/reference/migrations/).
406+
403407
:::note
404408

405409
When using Wrangler in the default local development mode, files will be written to local storage instead of the preview or production database. Refer to [Local development and testing](/workers/testing/local-development/) for more details.

0 commit comments

Comments
 (0)