© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
XataX
Xata•2y ago•
6 replies
Storm

Does type "serial" exist in Xata/Drizzle?

I keep getting
error: type "serial" does not exist
error: type "serial" does not exist
when I push my schema:
id: serial('id').primaryKey().notNull(),
id: serial('id').primaryKey().notNull(),


and if I do introspect I get this:
id: integer("id").default(nextval('cv_theque_profiles_id_seq'::regclass)).primaryKey().notNull(),
id: integer("id").default(nextval('cv_theque_profiles_id_seq'::regclass)).primaryKey().notNull(),

which is not valid syntaxically
image.png
Xata banner
XataJoin
This is Xata's community Discord server, where we discuss all things Xata: projects, features, dreams!
1,125Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Drizzle ORM schema conflict with xata_createdat and xata_updatedat
XataXXata / help
2y ago