Improve wrong db provider error message (#2192)

This commit is contained in:
Filip Sodić 2024-07-17 14:19:10 +02:00 committed by GitHub
parent 6aafec4ddf
commit ee2c57cb2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -159,7 +159,7 @@ validateOnlyEmailOrUsernameAndPasswordAuthIsUsed spec =
validateDbIsPostgresIfPgBossUsed :: AppSpec -> [ValidationError]
validateDbIsPostgresIfPgBossUsed spec =
[ GenericValidationError
"The database provider in the schema.prisma file must be \"postgres\" since there are jobs with executor set to PgBoss."
"The database provider in the schema.prisma file must be \"postgresql\" since there are jobs with executor set to PgBoss."
| isPgBossJobExecutorUsed spec && not (isPostgresUsed spec)
]