Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't switch between postgres drivers. #8209

Open
bacharSalleh opened this issue Jun 30, 2024 · 0 comments
Open

Can't switch between postgres drivers. #8209

bacharSalleh opened this issue Jun 30, 2024 · 0 comments
Labels
t/bug Issue Type: Bug

Comments

@bacharSalleh
Copy link

Steps to reproduce

# drizzle.config.ts

import { env } from '@/env';
import 'dotenv/config';
import { defineConfig } from 'drizzle-kit';
import path from 'path';

export default defineConfig({
 schema: path.resolve(__dirname, 'schema.ts'),
 out: './out',
 dialect: 'postgresql',
 driver: "pg",
 verbose: true,
 dbCredentials: {
   url: env.DATABASE_URL,
 },
}); 

Expected result

Actual result

npx drizzle-kit push --config src/drizzle/drizzle.config.ts
drizzle-kit: v0.22.8
drizzle-orm: v0.31.2

Custom config path was provided, using 'src/drizzle/drizzle.config.ts'
Reading config file '/home/bashar/projects/poj/web/src/drizzle/drizzle.config.ts'
Error Please provide required params for Postgres driver:
[✓] url: 'postgresql://postgres:[email protected]:5432/dev_db'

Environment

NODE_ENV='dev'

FYI

  • it will work if I don't choose the driver. it will select the latest driver installed (neon, pg ...etc)
@bacharSalleh bacharSalleh added the t/bug Issue Type: Bug label Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/bug Issue Type: Bug
Projects
None yet
Development

No branches or pull requests

1 participant