dotnet / dotnet/EntityFramework.Docs

How to setup a reviewing migration (and rollback) gate for scripts in Azure DevOps?

Open
#3,515 10 comments 0 reactions 0 assignees View on GitHub
area-migrations new-pm
Dominant language
Mermaid
Stars
1.7k
Forks
2k
Avg merge
7d 23h
Merged PRs (30d)
16

Description

Maybe this is should not bee asked here but I´m doing it because of the work that seems to be going into management of deployment with things like [bundles ](https://github.com/dotnet/efcore/issues/19693), [Improve experience for managing migrations](https://github.com/dotnet/efcore/issues/22945) and [Improve experience deploying databases created by Migrations](https://github.com/dotnet/efcore/issues/19587) so here goes. If you feel strongly against it just close it and I´ll ask it there.

My question is, **how can I gate/review migration and rollback scripts in DevOps?**

The out of the box functionality to review SQL changes with using AzureDevOps is lacking a lot. And also how can I automatically create rollback files for "thisMigration" agains "lastMigration"?

I managed to get a ["poor mans version"](https://stackoverflow.com/questions/69706120/gated-ef-migrations-for-sql-scripts-in-azure-devops) working but I think this is something that is not going to cut it.

And maybe this will not get better and we need to move to something like Octopus Deploy?

Looking forward hearing your input.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.