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
[ ] Bug fix (non-breaking change which fixes an issue)
[ X ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[ X ] My code follows the code style of this project.
[ X ] My change requires a change to the documentation.
[ X ] I have updated the documentation accordingly.
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: