drizzle-team / drizzle-team/drizzle-orm

[BUG]: drizzle-kit introspect on pg array col produces errant schema.ts

Open
#2,595 1 comment 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.