2024-04-14 03:26:19 +02:00
|
|
|
import { config } from "config-manager";
|
2024-04-13 14:20:12 +02:00
|
|
|
import type { Config } from "drizzle-kit";
|
2024-04-11 13:39:07 +02:00
|
|
|
|
|
|
|
|
export default {
|
2024-05-13 04:09:57 +02:00
|
|
|
dialect: "postgresql",
|
2024-06-13 01:10:40 +02:00
|
|
|
out: "./drizzle/migrations",
|
2024-04-11 13:39:07 +02:00
|
|
|
schema: "./drizzle/schema.ts",
|
|
|
|
|
dbCredentials: {
|
2024-04-18 03:53:42 +02:00
|
|
|
/* host: "localhost",
|
2024-04-16 02:40:40 +02:00
|
|
|
port: 40000,
|
|
|
|
|
user: "lysand",
|
|
|
|
|
password: "lysand",
|
2024-04-18 03:53:42 +02:00
|
|
|
database: "lysand", */
|
|
|
|
|
host: config.database.host,
|
2024-04-11 13:39:07 +02:00
|
|
|
port: Number(config.database.port),
|
|
|
|
|
user: config.database.username,
|
|
|
|
|
password: config.database.password,
|
2024-04-18 03:53:42 +02:00
|
|
|
database: config.database.database,
|
2024-04-14 03:26:19 +02:00
|
|
|
},
|
2024-04-11 13:39:07 +02:00
|
|
|
// Print all statements
|
|
|
|
|
verbose: true,
|
|
|
|
|
// Always ask for confirmation
|
|
|
|
|
strict: true,
|
|
|
|
|
} satisfies Config;
|