最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

next.js - Database: migration against the ID field - Stack Overflow

programmeradmin3浏览0评论

I have a PSQL database with related relations, and I already have record store in the tables. I need to update the default value for the id field in the relations from CUID to UUID. I'm using Prisma ORM in a NextJS application, and I need to do the update so I could integrate Motor-Admin "Running as a separate app" with my DB, as now I cannot create any new records from the admin panel due to ID violation.

My question is, what's the best way to perform this update, and is it even possible at all without standards violations?

发布评论

评论列表(0)

  1. 暂无评论