Closed ygpark80 closed 1 week ago
drizzle-orm
0.33.0
drizzle-kit
0.24.2
SMALLINT
drizzle-kit introspect
smallint
DECIMAL UNSIGNED
duration: decimal("duration", { precision: 10, scale: 5 }) unsigne }),
import { mysqlTable, mysqlSchema, AnyMySqlColumn, primaryKey, int, decimal, smallint } from "drizzle-orm/mysql-core"
UNSIGNED
DECIMAL
duration: decimal("duration", { precision: 10, scale: 5 })
A reproduction of this issue can be found at https://github.com/ygpark80/drizzle-kit-introspect
You can use docker compose up to set up the environment, and then run yarn pull to generate the error.
docker compose up
yarn pull
Is anyone from the Drizzle team going to respond at all? I even have PRs for the problems outlined here.
Was fixed in drizzle-kit@0.28.0
drizzle-kit@0.28.0
What version of
drizzle-orm
are you using?0.33.0
What version of
drizzle-kit
are you using?0.24.2
Describe the Bug
SMALLINT
type, runningdrizzle-kit introspect
doesn't import thesmallint
type in the import statement.DECIMAL UNSIGNED
type, it generates the code incorrectly. The incorrect output looks like this:Expected behavior
UNSIGNED
attribute is deprecated forDECIMAL
, it should ignore theUNSIGNED
attribute and generate something like:Environment & setup
A reproduction of this issue can be found at https://github.com/ygpark80/drizzle-kit-introspect
You can use
docker compose up
to set up the environment, and then runyarn pull
to generate the error.