PrismaP
Prisma11mo ago
4 replies
Shine

Migrate prisma lost data

Hello there, I have an issue while I try to migrate something.
While preforming that command : npx prisma migrate dev --create-only --name rename-column a SQL file is created so I modify it by :
ALTER TABLE "Token" RENAME COLUMN "token" TO "tokens"; and I still lost my data inside that column. Is this even possible to rename a column without lost all datas ??
Was this page helpful?