Skip to content

System versioning is dropped from temporal tables in ignored schemas #55

@IanKemp

Description

@IanKemp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions