drizzle-team / drizzle-team/drizzle-orm
[BUG]: drizzle-kit hardcodes the schema into the migration file
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### What version of `drizzle-orm` are you using?
0.31.0
### What version of `drizzle-kit` are you using?
0.22.1
### Describe the Bug
The problem is that when I generate a migration file with `drizzle-kit` it hardcodes the schema into the migration file. This is **very bad** because I can't run the migration in an environment where I have a schema with a different name (for example on some PaaS providers). What should be done instead is to select the schema based on the connection string and the migration file itself shouldn't have schemas mentioned in them. This configuration option should be part of the `drizzle.config` file too.
### Expected behavior
The generated migration files shouldn't have a schema in them.
### Environment & setup
VS Code / WSL
Contributor guide
Assessment
This issue has not been assessed yet.