Is there someone to help me?
# orm-help
b
Is there someone to help me?
1
j
I think the main issue come from your migration files has conflict
Could you fix by sync your migration files and database migration checksum'
👋 1
b
But my question is how can I automate this
Baselining a database
process through a pipeline like Azure pipeline?
a
Hey Bablu 👋🏾 I would recommend doing the step from your computer because this is a step you will only run once. It would also be possible to do it in CI by replacing
prisma migrate deploy
with the commands included in the page linked by Jarupong. However, this will be a 3 step process — update your YAML config, baseline the database using CI, and revert changes back to
migrate deploy
. (This might be a little hectic but safer because you wouldn’t connect to your production database from your dev machine).
prisma rainbow 1
👍 2
b
Thanks @Alex Ruheni for your suggestion