drizzle-team / drizzle-team/drizzle-orm
[BUG]: drizzle-kit introspect on pg array col produces errant schema.ts
Open
bug
bug/fixed-in-beta
drizzle/kit
priority
- 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.2
### What version of `drizzle-kit` are you using?
0.22.8
### Describe the Bug
When running drizzle-kit introspect, columns such as ``v_grps varchar(20)[]`` will produce ``v_grps: varchar("v_grps", { length: 20)[ }).array()``
### Expected behavior
something akin to ``v_grps: varchar("v_grps", { length: 20 }).array()``
### Environment & setup
node:current-alpine = node ``v22.1.0`` & npm ``v10.7.0``
postgres ``v3.4.4``
Contributor guide
Assessment
This issue has not been assessed yet.