LI

liseezn

43 积分
0获赞0粉丝
@liseeznLv.2 初见2026-04-30 加入

www.liseezn.top www.wewe.men

05/02 05:40评论帖子在zeabur部署docker

只是假象解决 输入 强制重置数据库(清空脏数据+删除错误迁移记录) npx prisma migrate reset --force 生成全新迁移,自动创建所有表(SiteSetting/CustomPage等) npx prisma migrate dev --name init 就能跑起来了

05/01 22:07评论帖子在zeabur部署docker

日志 ```ts Invalid `prisma.siteSetting.findFirst()` invocation: The table `public.SiteSetting` does not exist in the current database. prisma:error Invalid `prisma.siteSetting.findFirst()` invocation: The table `public.SiteSetting` does not exist in the current database. prisma:error Invalid `prisma.customPage.findMany()` invocation: The table `public.CustomPage` does not exist in the current database. ⨯ Error [PrismaClientKnownRequestError]: Invalid `prisma.customPage.findMany()` invocation: The table `public.CustomPage` does not exist in the current database. at async g (.next/server/chunks/ssr/[root-of-the-server]__0kl3cfu._.js:1:4613) at async Z (.next/server/chunks/ssr/[root-of-the-server]__0_inswb._.js:15:516) { code: 'P2021', meta: { modelName: 'CustomPage', table: 'public.CustomPage' }, clientVersion: '6.19.2', digest: '995097739' } prisma:error Invalid `prisma.siteSetting.findFirst()` invocation: The table `public.SiteSetting` does not exist in the current database. ⨯ Error [PrismaClientKnownRequestError]: Invalid `prisma.siteSetting.findFirst()` invocation: The table `public.SiteSetting` does not exist in the current database. at async K (.next/server/chunks/ssr/_04lgrw~._.js:225:360090) at async (.next/server/chunks/ssr/_04lgrw~._.js:8:30263) at async P (.next/server/chunks/ssr/_04lgrw~._.js:225:386482) at async Q (.next/server/chunks/ssr/_04lgrw~._.js:225:386956) at async Module.Y [as generateMetadata] (.next/server/chunks/ssr/[root-of-the-server]__0_inswb._.js:15:33) { code: 'P2021', meta: { modelName: 'SiteSetting', table: 'public.SiteSetting' }, clientVersion: '6.19.2', digest: '907543524' } ```