[D1] Document migrations_pattern config option#31140
Open
alsuren wants to merge 1 commit into
Open
Conversation
Adds documentation for the new `migrations_pattern` D1 binding config field landing in wrangler PR cloudflare/workers-sdk#14089. Updates: - `d1/reference/migrations.mdx` \u2014 `migrations_pattern` shown in the example config, plus a new "Nested migration layouts" section that explains the default behaviour, shows the Drizzle-style nested example, lists the rules (`migrations_dir` required, pattern must start with `${migrations_dir}/`, recorded names are relative to `migrations_dir`), and notes that `wrangler d1 migrations create` only writes top-level files so ORM users should use their ORM's generate command. - `workers/wrangler/configuration.mdx` \u2014 `migrations_pattern` bullet next to the existing `migrations_dir` bullet in the D1 bindings reference.
Review
Warnings (1)
CommandsOnly codeowners can run commands. Post a comment with the command to trigger it.
|
5 tasks
Contributor
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds documentation for the new
migrations_patternD1 binding config field landing in wrangler PRcloudflare/workers-sdk#14089.
Updates:
d1/reference/migrations.mdx\u2014migrations_patternshown in the example config, plus a new "Nested migration layouts" section that explains the default behaviour, shows the Drizzle-style nested example, lists the rules (migrations_dirrequired, pattern must start with${migrations_dir}/, recorded names are relative tomigrations_dir), and notes thatwrangler d1 migrations createonly writes top-level files so ORM users should use their ORM's generate command.workers/wrangler/configuration.mdx\u2014migrations_patternbullet next to the existingmigrations_dirbullet in the D1 bindings reference.changelog entry
Documentation checklist