[feat] switched from mysql to postgresql
This commit is contained in:
@@ -4,8 +4,12 @@ import { defineConfig } from 'drizzle-kit';
|
||||
export default defineConfig({
|
||||
out: './drizzle', // Directory for migration files
|
||||
schema: './src/db/schema.ts', // Path to your schema file
|
||||
dialect: 'mysql', // Specify the database dialect
|
||||
casing: 'snake_case', // camelCase JS objects become snake_case in the DB
|
||||
dialect: 'postgresql', // Specify the database dialect
|
||||
dbCredentials: {
|
||||
url: process.env.DATABASE_URL!, // Use the URL from your .env file
|
||||
},
|
||||
schemaFilter: ['pokemon'],
|
||||
verbose: true,
|
||||
strict: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user