chore(drizzle): add config for drizzle-kit migrations
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { defineConfig } from "drizzle-kit";
|
||||
|
||||
export default defineConfig({
|
||||
dialect: "postgresql",
|
||||
schema: "./databases/schema.ts",
|
||||
out: "./databases/migrations",
|
||||
dbCredentials: {
|
||||
host: process.env.POSTGRES_HOST!,
|
||||
port: Number(process.env.POSTGRES_PORT ?? 5432),
|
||||
user: process.env.POSTGRES_USER!,
|
||||
password: process.env.POSTGRES_PASS!,
|
||||
database: process.env.POSTGRES_DB!,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user