Josef Henryson
Josef Henryson
PPrisma
Created by Josef Henryson on 10/17/2024 in #help-and-questions
prisma migrate dev - data lost
Hmm, I think I managed to solve it finally. I repeated the above steps: delete prisma_migrations in db, delete files, db pull, then an init migrate and I got the message my DB schema is in sync. Then I added my new fileds and a relation and made a new migrate and now I got a green message 😄
10 replies
PPrisma
Created by Josef Henryson on 10/17/2024 in #help-and-questions
prisma migrate dev - data lost
I get this message although I deleted all migration history: Drift detected: Your database schema is not in sync with your migration history.
10 replies
PPrisma
Created by Josef Henryson on 10/17/2024 in #help-and-questions
prisma migrate dev - data lost
Is it possible to reset all this in some way? I tried to delete all migration posts from DB and all the migration files, made a prisma db pull and then tried to make an initial migrate again. But it still wants to reset my database.
10 replies
PPrisma
Created by Josef Henryson on 10/17/2024 in #help-and-questions
prisma migrate dev - data lost
I will check it out. Thanks.
10 replies
PPrisma
Created by Josef Henryson on 10/17/2024 in #help-and-questions
prisma migrate dev - data lost
I even tried prisma db pull before migrate without success.
10 replies
PPrisma
Created by Josef Henryson on 10/17/2024 in #help-and-questions
prisma migrate dev - data lost
I also tried to remove all migration posts from the DB and all the migration files to make a new clean migrate, but I still got the same message.
10 replies
PPrisma
Created by Josef Henryson on 10/17/2024 in #help-and-questions
prisma migrate dev - data lost
Yes I added a relation between two new fields in two types. But should this not be possible without losing all the data?
10 replies