Readyroll : Getting Error While Build using VSTS :

2019-07-29 05:58发布

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
2楼-- · 2019-07-29 06:27

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.

Section 4 - Diff Report and diff correction script

查看更多
登录 后发表回答