Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add necessary --node-modules-dir flag to table creation via Drizzle #1327

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

darzyx
Copy link

@darzyx darzyx commented Jan 12, 2025

This just adds --node-modules-dir to the deno -A npm:drizzle-kit generate command.

Just how creating Drizzle schemas from a Postgres table requires --node-modules-dir to use drizzle-kit (see docs right above this in the "Infer schema with pull" section), we also need to use that flag to do the inverse of creating a Postgres table from a Drizzle schema.

The section above this already explains the meaning of the flag.

darzyx and others added 3 commits January 12, 2025 15:58
Just how inferring a Drizzle schema from a Postgres table requires `--node-modules-dir` to use `drizzle-kit` (see docs right above this section), we also need to use that flag to do the inverse of creating a Postgres table from a Drizzle schema.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants