import { defineConfig } from "drizzle-kit"; export default defineConfig({ schema: "./src/db/schema/index.ts", out: "./drizzle", dialect: "postgresql", dbCredentials: { // Matches scripts/dev-env.sh's DEV_DATABASE_URL. It pointed at 6432 (a // pooler) where nothing listens in this environment, so a bare db:migrate // failed confusingly. Migrations want Postgres directly in any case: see // the note in src/db/index.ts about parameterised queries through pgCat. url: process.env.DATABASE_URL ?? "postgres://continuum:continuum@localhost:5432/continuum", }, verbose: true, strict: true, });