theopensystemslab / fairhold-dashboard

https://fairhold-dashboard.vercel.app
0 stars 0 forks source link

Setup Prisma migrations on CI / GitHub actions #63

Open zz-hh-aa opened 2 months ago

zz-hh-aa commented 2 months ago

Ideally, we would want to modify our database going forward by generating Prisma migrations and allowing our CI/CD pipeline (GitHub actions) to then run these migrations to update the database.

What this would mean -

@gabrielegranello I have tried and miserably failed this task. I think I have got the logic of why we do this. I was also able to setup PRISMA and then run an initial migration (after pulling the current schema). Then, I tried to run a second migration so specify NOT NULL in some of the columns but I encountered a message similar to : if proceed data will be deleted, so I cancelled and stop. Very much looking forward to learn how to do without destroying the database

zz-hh-aa commented 2 months ago

Maybe we want a manual database backup process