`prisma dev --no-prompt` or `prisma migrate`
To quickly get things updated without caring about a watch mode or anything. Basically a non-interactive dev command.
A non-interactive command for migrating would be a huge help. Does anyone have a container workflow setup? I'd like to run migrations against new postgres database that I spin up in development but haven't come up with a good way of doing this non-interactively.
@mmeinzer Are you asking about running your normal migrations? Then prisma2 lift up should do the job. In any case, you should probably create a new issue for this as @timsuchanek 's suggestion is a different one - he wants to have a command version of the existing dev migrations from Developent Mode of prisma2 dev.
@janpio Ah okay - I misunderstood his request then. I was running into issues with prisma2 lift save being interactive but realized that passing a name in - as in prisma2 lift save --name init - eliminates the name prompt.
I realize that the migrations should already be committed to source but in the early stages of our project where we are rapidly changing the schema, we were running into git conflicts.
--name foo indeed fixes that problem - we will make sure to highlight that more in the future.
Please do open that new issue and describe your problem - maybe we already have a solution for that or can at least take this into account when we think about how we want to improve Lift (I am currently spending good parts of my day on that, so are very much interested in additional input).
Will do! Thanks for your help and work on Prisma2 :+1:
Does not exist any more.