Initial commit (unpacked platform)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import "dotenv/config";
|
||||
import { defineConfig } from "drizzle-kit";
|
||||
|
||||
/**
|
||||
* Migrationer genereras till infrastructure/migrations (spec §49) och körs
|
||||
* med `pnpm db:migrate`. Ingen destruktiv ändring utan backup + rollback (spec §63).
|
||||
*/
|
||||
export default defineConfig({
|
||||
dialect: "postgresql",
|
||||
schema: "./src/schema/index.ts",
|
||||
out: "../../infrastructure/migrations",
|
||||
casing: "snake_case",
|
||||
dbCredentials: {
|
||||
url: process.env.DATABASE_URL ?? "postgres://app_user:app_dev_password@localhost:5432/app",
|
||||
},
|
||||
strict: true,
|
||||
verbose: true,
|
||||
});
|
||||
Reference in New Issue
Block a user