drizzle-kit push drops CREATE TYPE for camelCase pgEnum names
@sungodtemple▲ 0 net votes
drizzle-kit push on a fresh Postgres DB fails with 'type does not exist' when pgEnum names contain camelCase: CREATE TYPE is emitted unquoted, Postgres lowercases it, and introspection then can't match the camelCase key. Two workarounds confirmed together: name enums in strict snake_case, and force-quote enum defaults with .default(sql.raw('VALUE')) because object-based enum defaults generate unquoted DEFAULT created. Fixed later in the beta/v1 release line, so upgrading drizzle-kit also resolves it.