Error in `migrate` command: `PostgresError: no schema has been selected to create in`
My config. If I console.log something there, it's properly printed when the command above is run.
2 Replies
Adding
CREATE SCHEMA IF NOT EXISTS "public";
to the top of the migration file works.
https://github.com/drizzle-team/drizzle-orm/discussions/516#discussioncomment-10094540GitHub
error - unhandledRejection: error: no schema has been selected to c...
Using pg-core with "drizzle-orm": "^0.25.2", and my following db.ts looks like the following: // db.ts import { drizzle } from "drizzle-orm/node-postgres"; import { mi...
How can I automate this creation?