Files
pokemon/drizzle.config.ts

16 lines
553 B
TypeScript
Raw Normal View History

2026-02-12 15:22:20 -05:00
import 'dotenv/config'; // Import dotenv to load environment variables
import { defineConfig } from 'drizzle-kit';
export default defineConfig({
out: './drizzle', // Directory for migration files
schema: './src/db/schema.ts', // Path to your schema file
casing: 'snake_case', // camelCase JS objects become snake_case in the DB
dialect: 'postgresql', // Specify the database dialect
2026-02-12 15:22:20 -05:00
dbCredentials: {
url: process.env.DATABASE_URL!, // Use the URL from your .env file
},
schemaFilter: ['pokemon'],
verbose: true,
strict: true,
2026-02-12 15:22:20 -05:00
});