Skip to content

Commit 4994a64

Browse files
committed
fix: add missing check for postgres
cc @RihanArfan
1 parent ee18fca commit 4994a64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/features/database.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ export async function setupDatabase(nuxt: Nuxt, hub: HubConfig, deps: Record<str
9393
if (!deps['drizzle-orm'] || !deps['drizzle-kit']) {
9494
logWhenReady(nuxt, 'Please run `npx nypm i drizzle-orm drizzle-kit` to properly setup Drizzle ORM with NuxtHub.', 'error')
9595
}
96-
if (driver === 'postgres-js' && !deps.pg) {
97-
logWhenReady(nuxt, 'Please run `npx nypm i pg` to use PostgreSQL as database.', 'error')
96+
if (driver === 'postgres-js' && !deps['postgres']) {
97+
logWhenReady(nuxt, 'Please run `npx nypm i postgres` to use PostgreSQL as database.', 'error')
9898
} else if (driver === 'pglite' && !deps['@electric-sql/pglite']) {
9999
logWhenReady(nuxt, 'Please run `npx nypm i @electric-sql/pglite` to use PGlite as database.', 'error')
100100
} else if (driver === 'mysql2' && !deps.mysql2) {

0 commit comments

Comments
 (0)