feat(drizzle-kit): support non-interactive generate conflicts#5454
Open
enki wants to merge 2 commits intodrizzle-team:mainfrom
Open
feat(drizzle-kit): support non-interactive generate conflicts#5454enki wants to merge 2 commits intodrizzle-team:mainfrom
enki wants to merge 2 commits intodrizzle-team:mainfrom
Conversation
1 task
Author
|
Follow-up commit pushed: preflight generate is now machine-readable on stdout, with config/schema info logs routed to stderr. |
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.
Refs #5307
Summary
generatedrizzle-kit generate --preflightand--answers <json|path>without creating the migration folder during preflightgenerate --preflightmachine-readable by keeping the JSON payload on stdout and routing incidental info logs to stderrgenerate*Migration(..., { answers })andpreflight*Migration()helpersTesting
pnpm -C drizzle-orm buildpnpm -C drizzle-kit exec tsc -p tsconfig.build.json --noEmitpnpm -C drizzle-kit exec vitest run tests/api-generate.test.ts tests/generate-questions.test.tspnpm -C drizzle-kit exec vitest run tests/cli-generate.test.ts tests/cli-preflight-output.test.tspnpm -C drizzle-kit exec vitest run tests/pg-tables.test.ts tests/pg-columns.test.ts tests/rls/pg-policy.test.ts