Closed markgould closed 2 months ago
Not sure why the formatting is so off - json files edited in VSCode. Any suggestions?
@twerthi @BobJWalker since you've both contributed here before open to your feedback.
The new connection string parameter bypasses the New-DatabaseConnection command and instead instantiates RedGate.Versioning.Automation.Compare.SchemaSources.DatabaseConnection to pass a custom connection string. New-DatabaseConnection supports a very limited subset of Authentication values, this seemed the best way to handle this.
Hey @markgould it looks like it might be a spaces vs tabs issue causing the amount of changes. Hiding white space in the file view makes only the actual changes to show up.
That sounds reasonable to me. As you're probably aware, Redgate is opting to invest in the Flyway database migrations product vs. the SQL Automation product so these templates may receive reduced usage.
That sounds reasonable to me. As you're probably aware, Redgate is opting to invest in the Flyway database migrations product vs. the SQL Automation product so these templates may receive reduced usage.
Yeah - we have it on our roadmap to transition at some point but have lots of projects using it today so it will take some time for us to migrate. Hopefully this can help others that may still be using the Change Automation tools.
Hey @markgould it looks like it might be a spaces vs tabs issue causing the amount of changes. Hiding white space in the file view makes only the actual changes to show up.
Could be, looks like some of the formatting may have been off previously too. Any changes you'd like me to make here?
@markgould There is an error in the template Redgate - Deploy from Package (Worker Friendly)
when not using the Connection String (Optional)
parameter. The template is using the PowerShell variable $DLMAutomationDatabaseServer
where I believe it is meaning to use the $DLMAutomationTargetDatabaseServer
parameter?
I didn't check the others, would you mind checking the other two for a similar situation?
Looks to be a similar issue with the database name, the code is using $DLMAutomationDatabaseName
whereas the Parameter is $DLMAutomationTargetDatabaseName
. After updating that one in my testing, I have encountered other issues. Did you update some Parameter names in the steps?
I see what's going on here - there are discrepancies with the parameter names in the deploy-from-package vs the other two, so when I updated that one there was an issue with it using the wrong variable names. Correcting now.
Should be good now. I also noticed an issue in how I was checking the Trust Server Certificate value across the 3 scripts, changed to use Convert.ToBoolean to handle empty values. Thanks for the feedback!
Background
Results
Existing behavior still works
After
Pre-requisites
Id
should be a GUID that is not00000000-0000-0000-0000-000000000000
Id
property (updating theId
will break the Library sync functionality in Octopus).Version
should be incremented, otherwise the integration with Octopus won't update the step template correctly$
LastModifiedBy
field must be present, and (optionally) updated with the correct authorCategory
has been created:{categoryname}.png
must be present under thestep-templates/logos
folderswitch
in thehumanize
function ingulpfile.babel.js
must have acase
statement corresponding to it