The table `main.verification` does not exist in the current database.
hey - trying to use better-auth with hono on cloudflare pages, currently just with a local database. Got hono and the database talking, tried to add better-auth with prisma, and I'm getting the following error:
at zn.handleRequestError (/Users/chris/hacks/podcast-time-machine/experiments/tmp/hono-prisma-d1/node_modules/@prisma/client/runtime/library.js:121:7459)
at zn.handleAndLogRequestError (/Users/chris/hacks/podcast-time-machine/experiments/tmp/hono-prisma-d1/node_modules/@prisma/client/runtime/library.js:121:6784)
at zn.request (/Users/chris/hacks/podcast-time-machine/experiments/tmp/hono-prisma-d1/node_modules/@prisma/client/runtime/library.js:121:6491)
at async l (/Users/chris/hacks/podcast-time-machine/experiments/tmp/hono-prisma-d1/node_modules/@prisma/client/runtime/library.js:130:9778)
at async Object.create (file:///Users/chris/hacks/podcast-time-machine/experiments/tmp/hono-prisma-d1/node_modules/better-auth/dist/adapters/prisma-adapter/index.mjs:92:16)
at async Object.create (file:///Users/chris/hacks/podcast-time-machine/experiments/tmp/hono-prisma-d1/node_modules/better-auth/dist/shared/better-auth.rSYJCd3o.mjs:388:19)
at async createWithHooks (file:///Users/chris/hacks/podcast-time-machine/experiments/tmp/hono-prisma-d1/node_modules/better-auth/dist/shared/better-auth.Bk5IMdhM.mjs:49:71)
coninued in comment
``
<-- POST /start-sign-in
/start-sign-in sees email user-email@email.com
c.env.DATABASE_URL undefined
<-- POST /api/auth/email-otp/send-verification-otp
# SERVER_ERROR: PrismaClientKnownRequestError:
Invalid prisma.verification.create() invocation:
The table main.verification` does not exist in the current database.at zn.handleRequestError (/Users/chris/hacks/podcast-time-machine/experiments/tmp/hono-prisma-d1/node_modules/@prisma/client/runtime/library.js:121:7459)
at zn.handleAndLogRequestError (/Users/chris/hacks/podcast-time-machine/experiments/tmp/hono-prisma-d1/node_modules/@prisma/client/runtime/library.js:121:6784)
at zn.request (/Users/chris/hacks/podcast-time-machine/experiments/tmp/hono-prisma-d1/node_modules/@prisma/client/runtime/library.js:121:6491)
at async l (/Users/chris/hacks/podcast-time-machine/experiments/tmp/hono-prisma-d1/node_modules/@prisma/client/runtime/library.js:130:9778)
at async Object.create (file:///Users/chris/hacks/podcast-time-machine/experiments/tmp/hono-prisma-d1/node_modules/better-auth/dist/adapters/prisma-adapter/index.mjs:92:16)
at async Object.create (file:///Users/chris/hacks/podcast-time-machine/experiments/tmp/hono-prisma-d1/node_modules/better-auth/dist/shared/better-auth.rSYJCd3o.mjs:388:19)
at async createWithHooks (file:///Users/chris/hacks/podcast-time-machine/experiments/tmp/hono-prisma-d1/node_modules/better-auth/dist/shared/better-auth.Bk5IMdhM.mjs:49:71)
coninued in comment