Shine
PPrisma
•Created by Shine on 3/11/2025 in #help-and-questions
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 ??5 replies