Deploying Only New Versions Of SQL Objects With Octopus Deploy
ChrisM
Posts: 10 New member
We have a Continuous Integration process set up which is working well with TeamCity and Octopus Deploy building and deploying updates to several test databases as changes are checked in to our code repository from our development databases.
Very occasionally we have a requirement where an object is amended in one of the test databases outside of the standard CI process for specific testing due to specific test data being in them. When this happens, those amendments are lost when the CI process runs as it sees the differences and overwrites with the version in the latest NuGet package created from source control.
Does anyone know if there is any way of stopping this behaviour, i.e. if the timestamp on the object (table, proc, function etc.) in the target database is newer than the timestamp in the source control system?
Thanks in advance for any suggestions,
Chris.
Very occasionally we have a requirement where an object is amended in one of the test databases outside of the standard CI process for specific testing due to specific test data being in them. When this happens, those amendments are lost when the CI process runs as it sees the differences and overwrites with the version in the latest NuGet package created from source control.
Does anyone know if there is any way of stopping this behaviour, i.e. if the timestamp on the object (table, proc, function etc.) in the target database is newer than the timestamp in the source control system?
Thanks in advance for any suggestions,
Chris.
Tagged:
Comments
If the test environment was a release target rather than a CI sync target, then the DLMA process would stop at the drift check and request manual intervention, which would let you take the change back into source control if appropriate, or add a filter to the deployment if you just wanted the change to persist in test temporarily.
Product Support Engineer
Redgate Software Ltd
Please see our Help Center for detailed guides on how to use our tools