Not getting update scripts from DLM release
atwebb
Posts: 7 New member
I'm sure there's a setting I'm missing or something misconfigured but I can't find it for the life of me. My package builds/tests fine and the output nuget package has the state that I want to promote. The release flows through and unpacks it however it always ends with
The update script doesn't contain any SQL statements. Skipping the update.
And nothing is actually deployed, unless I use a migration script for every step which doesn't appear necessary.
This is SOC->TFS on prem using DLM
The update script doesn't contain any SQL statements. Skipping the update.
And nothing is actually deployed, unless I use a migration script for every step which doesn't appear necessary.
This is SOC->TFS on prem using DLM
Tagged:
Best Answer
-
atwebb Posts: 7 New memberWhew, ok, so, I'd done a build or two and release prior, then installed SQLTest/SQLCop and decided to see if it would roll through the release management but it didn't. I added my own test schema (UnitTest) and it didn't, that's when I went down this rabbit hole and opened this comment.
Turns out, there's a default option for IgnoreTSQLT in the build (in the XML config file that's generated), I added the -IgnoreTSQLT switch to my release SQL Compare Options and bam, it all went through. Interesting that my own schema was ignored, I'm guessing because it contains that word "test".
Thanks for the help!
Answers
DevOps Mentor and Coach
Director of DLM Consultants
Creator of Speaking Mentors
Microsoft Data Platform MVP
Friend of Redgate
Twitter / LinkedIn
They are in different states, I've validated with SQL Compare and checked that the logs are pointing to the correct targets.
Steps for build:
DLM Build from latest SOC version to Package
I can validate that the generated package is good (has the changes I want)
Release
DLM Release (both from package and create database release) will show that they're comparing against my target DB and both end up showing the no updates. I got one or two to work and if I make a migration script then it works but it won't transfer state, these are new procs so I'd expect it to be the easiest scenario. I'm sure I'm missing something simple.
This script is empty because the Target and Source schemas are equivalent after applying the filter in package file
Seems pretty straightforward but the filters are really, really low and don't contain procs/schemas that should not be promoted/excluded.