Bamada
09/27/2021, 4:00 PMnpx prisma migrate dev --create-only
but I still get a prompt that request me to reset my database what i want to avoid.
Is it possible to do that without reset my db?
/app $ npx prisma migrate dev --create-only
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "mercure", schema "public" at "db:5432"
? Drift detected: Your database schema is not in sync with your migration history.
The following is a summary of the differences between the expected database schema given your migrations files, and the actual schema of the database.
It should be understood as the set of changes to get from the expected schema to the actual schema.
[+] Added tables
- mercure_configs
- mercure_responses
[*] Changed the `mercure_configs` table
[+] Added unique index on columns (po)
We need to reset the PostgreSQL database "mercure" at "db:5432".
Do you want to continue? All data will be lost. › (y/N)
Ryan
09/28/2021, 7:18 AMBamada
09/28/2021, 7:31 AM