2024-12-26 18:49:41 +00:00
|
|
|
import { defineConfig } from 'drizzle-kit';
|
|
|
|
|
|
|
|
|
|
/* ------------------------------- !IMPORTANT ------------------------------- */
|
|
|
|
|
/* ---------------- Before running migrations or generations ---------------- */
|
|
|
|
|
/* ------------------ make sure to build the project first ------------------ */
|
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
out: './drizzle',
|
|
|
|
|
schema: './src/lib/server/api/databases/postgres/drizzle-schema.ts',
|
|
|
|
|
breakpoints: false,
|
|
|
|
|
strict: true,
|
|
|
|
|
verbose: true,
|
|
|
|
|
dialect: 'postgresql',
|
|
|
|
|
casing: 'snake_case',
|
|
|
|
|
dbCredentials: {
|
2024-12-27 00:46:28 +00:00
|
|
|
url: process.env.DATABASE_URL ?? '',
|
2024-12-26 18:49:41 +00:00
|
|
|
},
|
|
|
|
|
migrations: {
|
|
|
|
|
table: 'migrations',
|
2024-12-27 00:46:28 +00:00
|
|
|
schema: 'public',
|
|
|
|
|
},
|
2024-12-26 18:49:41 +00:00
|
|
|
});
|