2
0

✏️ Fix URL starting with postgres error message

This commit is contained in:
Baptiste Arnaud
2024-01-17 15:01:19 +01:00
parent 36102876ce
commit 30d6fcc880

View File

@ -35,7 +35,7 @@ export const executePrismaCommand = (command: string, options?: Options) => {
} }
if (process.env.DATABASE_URL?.startsWith('postgres://')) { if (process.env.DATABASE_URL?.startsWith('postgres://')) {
console.error('PostgreSQL `DATABASE_URL` should start with postgres') console.error('PostgreSQL `DATABASE_URL` should start with postgresql://')
process.exit(1) process.exit(1)
} }
} }