PostgreSQL "type serial does not exist"

My drizzle schema uses


bigserial("topicid", { mode: "number" })

for the ids of several of my tables.

When I attempt to do db push, I get the following error:
error: type "bigserial" does not exist

I've checked the migration that I generated previously, and it looks like this,
"id" bigserial PRIMARY KEY NOT NULL,
so I don't think it's a problem with the generated SQL.

I've had this problem with the serial data type as well.
Was this page helpful?