metatron-open-seo/drizzle-pg.config.ts
Developer aefbf86e08
Some checks failed
CI / ci (push) Has been cancelled
CI / docker-build (push) Has been cancelled
Publish Docker image / docker (push) Has been cancelled
Upload sourcemaps / upload (push) Has been cancelled
Migrate project to Gitea
2026-09-08 21:08:29 +00:00

16 lines
489 B
TypeScript

import { defineConfig } from "drizzle-kit";
import { loadLocalEnv } from "./scripts/cli-utils";
// Pull POSTGRES_DATABASE_URL from .env.local (no-op if already in the shell env),
// so the migration runbooks' single .env.local works for `db:migrate:pg` too.
loadLocalEnv();
export default defineConfig({
dialect: "postgresql",
schema: "./src/db/pg/schema.ts",
out: "./drizzle-pg",
dbCredentials: {
url: "postgres://openseo_user:Metatron2026@localhost:5432/openseo",
},
});