Skip to content
New issue

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

[BUG]: drizzle-kit introspect small errors #1738

Closed
AlexXi19 opened this issue Jan 2, 2024 · 1 comment
Closed

[BUG]: drizzle-kit introspect small errors #1738

AlexXi19 opened this issue Jan 2, 2024 · 1 comment
Labels
bug Something isn't working drizzle/kit

Comments

@AlexXi19
Copy link

AlexXi19 commented Jan 2, 2024

What version of drizzle-orm are you using?

0.29.1

What version of drizzle-kit are you using?

0.20.7

Describe the Bug

We are migrating our core services from prisma to drizzle, but we still plan on using prisma to maintain the schema. We noticed that there are a few errors that come from drizzle-kit introspect:pg.

  1. Introspecting enum array
    prisma schema:
featureTag              FeatureTagEnum[]

enum FeatureTagEnum {
  ENUM1
  ENUM2
}

drizzle schema:

featureTag: unknown("featureTag").array(),
  1. Introspecting a float

prisma schema:

Column Float    @default(-1)

drizzle schema:

column: doublePrecision("Column").default(-1::integer).notNull()

Expected behavior

Expected introspected drizzle schema should throw no (typescript) errors & schema is correct.

Environment & setup

pnpm, node.js, postgres

@AlexXi19 AlexXi19 added the bug Something isn't working label Jan 2, 2024
@AndriiSherman
Copy link
Member

This should be fixed in drizzle-kit@0.24.1
If you still encounter this issue, please reopen the ticket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working drizzle/kit
Projects
None yet
Development

No branches or pull requests

3 participants