Postgres Schema (namespace)
Does anyone have a minimal example of a Drizzle postgres schema that uses the Postgres "Schema" (namespace) feature?
On drizzle kit push I keep getting
error: schema "meow" does not exist
.
4 Replies
in your drizzle config have you added
ive honestly only used it where the schema was already made, i dont know qhat happens if it doesnt exist
I have. I'm a bit confused because when I look at the docs https://orm.drizzle.team/docs/column-types/pg#enum I see that it should've created a corresponding SQL statement to create the schema for me. But then I don't see it when I generate the migration files.
ah.. try adding export to
so
then in your config make sure you import * from that file
Yo... massive thanks. What an oversight by me.