cake-contrib / Cake.DotNetCoreEf

https://cakebuild.net/extensions/cake-dotnetcoreef/
MIT License
5 stars 12 forks source link

Added List migrations functionality #45

Closed nick5454 closed 4 years ago

nick5454 commented 4 years ago

I added the List functionality as this is needed in Pipelines (Release) to verify what should be applied. When schema changes are made sometimes this causes an error in the Azure SQL Deploy and breaks the build using an entire script.

Description

Added the Migration List to Json functionality to the component

Related Issue

Listing migrations is needed for some building functionality.

Motivation and Context

Adds capability to return a list of all migrations. This allows the pipeline to determine which migrations to apply without causing SQL errors.

How Has This Been Tested?

I created the Unit Tests to verify the command line is correct. I also copied the output against my project to verify the results are correct. This is my first PR for Cake and i'm not sure if my code will return the json in the script, but after the PR is merged I can verify it records the json results from the Ef CLI.

Screenshots (if appropriate):

Types of changes

Checklist: