Title is pretty self-explanatory, if you have a temporal table called Bar in schema foo then specifying SqlPackageFilter=IgnoreSchema(foo) results in Bar's system versioning being dropped. The debug log output shows:
-- checking filter for a SqlDropSystemVersioningStep
Looking in DeploymentStepDecider shows there's no explicit handling for Microsoft.SqlServer.Dac.Deployment.SqlDropSystemVersioningStep which is the issue. The simple fix (so far in my limited testing) is to check SqlDropSystemVersioningStep.Next and if that is a DropElementStep, pass the latter to DeploymentStepDecider.RemoveDropStep.
I will fork the repo and submit a PR tomorrow.
Title is pretty self-explanatory, if you have a temporal table called
Barin schemafoothen specifyingSqlPackageFilter=IgnoreSchema(foo)results inBar's system versioning being dropped. The debug log output shows:Looking in
DeploymentStepDecidershows there's no explicit handling forMicrosoft.SqlServer.Dac.Deployment.SqlDropSystemVersioningStepwhich is the issue. The simple fix (so far in my limited testing) is to checkSqlDropSystemVersioningStep.Nextand if that is aDropElementStep, pass the latter toDeploymentStepDecider.RemoveDropStep.I will fork the repo and submit a PR tomorrow.