diff --git a/pkgs/utils/prisma.ts b/pkgs/utils/prisma.ts index 178d9f7..1915c5f 100644 --- a/pkgs/utils/prisma.ts +++ b/pkgs/utils/prisma.ts @@ -5,6 +5,7 @@ import { g } from "./global"; export const preparePrisma = async () => { if (await existsAsync(dir("app/db/.env"))) { + await $({ cwd: dir(`app/db`) })`bun prisma db pull`; await $({ cwd: dir(`app/db`) })`bun prisma generate`; try { const { PrismaClient } = await import("../../app/db/db");