Prisma1: How to reset DB

Created on 17 Oct 2018  Â·  4Comments  Â·  Source: prisma/prisma1

Applying changes (17/11) ⣾ ... without any progress.

prisma reset does not help.

docker-compose kill
docker-compose down
docker-compose up -d

docker-compose kill etc. does not help either.

What am I doing wrong? To be honest, I am not sure what am I reseting if DB with some tables is still there.

kinquestion

Most helpful comment

@steida : prisma reset only wipes the data and keeps the schema. If you want to also delete the schema, just run prisma delete to get rid of the whole service.

All 4 comments

Try

$ docker-compose down -v

-v flag is used to remove volumes

@ewnd9 My workaround is to remove all types except one, then deploy with force, then put the rest of the model back.

@steida : prisma reset only wipes the data and keeps the schema. If you want to also delete the schema, just run prisma delete to get rid of the whole service.

is there any way to reset only given table instead prisma reset which resets whole db

Was this page helpful?
0 / 5 - 0 ratings

Related issues

notrab picture notrab  Â·  3Comments

thomaswright picture thomaswright  Â·  3Comments

marktani picture marktani  Â·  3Comments

Fi1osof picture Fi1osof  Â·  3Comments

AlessandroAnnini picture AlessandroAnnini  Â·  3Comments