Database Deployments with Automatic Rollbacks, part V: Summary of the Series

åThis post is part of a series on deploying database updates with automatic rollbacks using EF Core Migrations and Octopus Deploy. In this part, we’ll sum up the deployment process we’ve created, and wrap up the series.

All posts in the series:

Part I: Where We Are, and Where We Want To Be
Part II: Packaging the Database Updates
Part III: Deploying the Database Updates
Part IV: Adding Automatic Rollback of Application Services
Part V: Summary of the Series (this post)


All the scripts in this series are available in this gist.

Where We Came From

When we started this series, we had a deployment pipeline for our application binaries, but database upgrades were still a hassle. As a consequence, we weren’t really able to deliver continuously, even though we had the ambition.

The New Deployment Process

With our changes to the deployment process as outlined in this series, we now have a process that looks like this instead:

Most of these steps, we’ve defined in this series; the remaining ones are very simple (and in no way required to get the database deployment scheme up and running).

With this in place, deploying is as simple as pushing a button, and in case of a failure we automatically restore a good known state. This lets us figure out what went wrong and fix it with less stress – the system is up while we’re doing it.

Hopefully, this article series can help you get there too. Good luck, and happy deploying!

This Post Has 2 Comments

  1. Mark Snelling

    Hi, thanks for these posts. Just a note that the link to the code Gist is invalid.

    1. Tomas Aschan

      Thanks for letting me know! I did change my Github username recently (got married and changed last names…). I’ve gone through the articles and changed all the links I could find (but on mobile, so might have missed some – if so, replace tlycken with tomasaschan in the url…). Thanks again!

Leave a Reply