Rob Hoskins
04/26/2022, 7:53 PMnpx prisma migrate dev --name init
it tries to add fields to one of the tables and warns all data will be lost, I don't want that... What am I missing? many TIA!
In my schema I'm db-pulling to get the two tables into prisma.schema and then adding a third new one.
[+] Added tables
- job
- job_schedule
`[*] Changed the job_schedule
table`
[+] Added index on columns (job_id)
[+] Added foreign key on columns (job_id)
√ We need to reset the PostgreSQL database "My-Project" at "XX.XXX.XXX.XX:5432".
Do you want to continue? All data will be lost. ... no
Austin Zentz
04/26/2022, 7:59 PMAustin Zentz
04/26/2022, 8:00 PMAustin Zentz
04/26/2022, 8:00 PMAustin Zentz
04/26/2022, 8:00 PMAustin Zentz
04/26/2022, 8:01 PMRob Hoskins
04/26/2022, 8:21 PMRob Hoskins
04/26/2022, 10:27 PMYour database is now in sync with your schema. Done in 2.71s
✔ Generated Prisma Client (3.12.0 | library) to .\node_modules\@prisma\client in 104ms
Nurul
04/27/2022, 12:46 PMRob Hoskins
04/27/2022, 9:00 PM