In Azure DevOps, the way I used to update the SQL Server Database was with Entity Framework Core, using two tasks:
- In my Build Pipeline: This task that generated a sql script with my db migrations.
- In the Release Pipeline: This task to update the database using this script.
The thing is, now that I'm using a PostgreSQL database, I can't find an easy and clean way to update the database in the same way. I've seen there's another task for MySQL that does exactly the same my release pipeline task did with SQL Server, but nothing for PostgreSQL.
So I thought I could basically execute dotnet ef update database (with its proper options set) in the pipeline, but I was wondering if there's actually a way to keep updating the database in a smooth way as I did before.
