Readyroll : Getting Error While Build using VSTS : Drift analysis: These changes will NOT be applied because DriftOptionBlockDataLoss=True

旧时模样 提交于 2019-12-11 07:33:20

问题


Some of the scripts were migrate manually without using readyroll script. Now any new push to dev branch fails with following error :

DB\DB.sqlproj(0,0): Error : Drift analysis: These changes will NOT be applied because DriftOptionBlockDataLoss=True (see 'obj\Release\DB_ReSync.sql' for details). Changes have been detected that could result in data loss for the following table object(s): dbo.Info.

Process 'msbuild.exe' exited with code '1'.

Same works fine on local but fails in the build created in VSTS. What needs to be done for successful build ?


回答1:


I am using ReadyRoll Core and not the Pro edition as this functionality is part of the Pro edition of the VSTS extension. Please see the Red Gate documentation pertaining to ReadyRoll and the Diff Report and diff correct script (Section 4), where this param DriftOptionBlockDataLoss and other related params DriftOptionDropMissingObjects are established in the build pipeline.



来源:https://stackoverflow.com/questions/55793706/readyroll-getting-error-while-build-using-vsts-drift-analysis-these-changes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!