drizzle-team / drizzle-team/drizzle-orm
[BUG]: Issue with SQL generation. Trying to reference a type that doesn't exist?
- 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?
1.0.7
### What version of `drizzle-kit` are you using?
_No response_
### Describe the Bug
Recording: https://www.loom.com/share/29310c5b20d24daea7ed212cc10c38f2
Hi all, so I ran into a couple of situations during the migration step, where I am getting the error:
`applying migrations...error: type "account_type" does not exist`
And I believe that this is an issue somewhere within the sql generation.
It looks like the sql syntax is invalid, but then also claims a type that does exist does not.
I've explained it in detail in the video above; I could be wrong so if I am, let me know what it is.
So far I've always resolved this by manually running the sql updates.
### Expected behavior
_No response_
### Environment & setup
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.