musicle-svelte/drizzle.config.ts

24 lines
724 B
TypeScript
Raw Normal View History

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: {
url: process.env.DATABASE_URL!
},
migrations: {
table: 'migrations',
schema: 'public'
}
});