We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I run
pnpm exec drizzle-kit pull
wtih
export default defineConfig({ dialect: "postgresql", out: "./src/db/a_db/", schema: "schema.ts" });
The output is
... [✓] Your SQL migration file ➜ src/db/a_db/0000_shiny_argent.sql 🚀 [✓] Your schema file is ready ➜ src/db/a_db/schema.ts 🚀 [✓] Your relations file is ready ➜ src/db/a_db/relations.ts 🚀 ...
But I don't want migration, all I need is the schemas. How can I tell drizzle to stop generating migrations?
And with
export default defineConfig({ dialect: "postgresql", schema: "./src/db/a_db/schema.ts" });
I get
[✓] Your SQL migration file ➜ drizzle/0000_large_freak.sql 🚀 [✓] Your schema file is ready ➜ drizzle/schema.ts 🚀 [✓] Your relations file is ready ➜ drizzle/relations.ts 🚀
So it completely ignores the path I give to schema if there is no out. And still, it generates migrations I don't need (I am pulling from the db).
export default defineConfig({ dialect: "postgresql", schema: "./src/db/a_db/schema.ts" migration: "/tmp/go_away" });
[✓] Your SQL migration file ➜ drizzle/0000_striped_mongu.sql 🚀 [✓] Your schema file is ready ➜ drizzle/schema.ts 🚀 [✓] Your relations file is ready ➜ drizzle/relations.ts 🚀
So it's clear that
out
outDir
schema
migration
I guess if drizzle could honour the paths and schema and migration then we could sent migrations to /tmp/something and forget about it.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Feature hasn't been suggested before.
Describe the enhancement you want to request
When I run
wtih
The output is
But I don't want migration, all I need is the schemas. How can I tell drizzle to stop generating migrations?
And with
I get
So it completely ignores the path I give to schema if there is no out. And still, it generates migrations I don't need (I am pulling from the db).
I get
So it's clear that
out
is actually a dir (would be clear if namedoutDir
)out
is required, otherwise files will be created into ./drizzle/, regardless of what you put in schema / migrationschema
andmigration
cannot go in different foldersI guess if drizzle could honour the paths and schema and migration then we could sent migrations to /tmp/something and forget about it.
The text was updated successfully, but these errors were encountered: