createInsertSchema wrong type (drizzle-zod 0.3.1, sqlite))

Ttacomanator4/18/2023
After upgrading to 0.3.1, all of the fields changed to ZodTypeAny
Bbloberenober4/18/2023
did you update drizzle-orm as well?
Ttacomanator4/18/2023
Yes, to 0.24.1
Bbloberenober4/18/2023
could you post your table definition?
Ttacomanator4/18/2023
export const StatusUpdate = sqliteTable("StatusUpdate", {
id: cuid2("id").primaryKey(),
author: text("author")
.notNull()
.references(() => User.id),
createDate: now("date").notNull(),

applicationId: text("applicationId")
.notNull()
.references(() => Application.id),
type: text("type", { enum: statusUpdateTypes }).notNull(),
statusDate: text("statusDate").notNull(),
note: text("note").notNull(),
});
Ttacomanator4/18/2023
export const statusUpdateInsertSchema = createInsertSchema(StatusUpdate).omit({
id: true,
author: true,
createDate: true,
});
Bbloberenober4/18/2023
yep, confirmed the issue
happens in mysql, too
Bbloberenober4/18/2023
tests were too broad and didn't catch this
Bbloberenober4/18/2023
working on the fix
Bbloberenober4/18/2023
@tacomanator fixed in 0.3.2
Ttacomanator4/18/2023
confirmed, thank you!