Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/6.0] Fix to #27375 - EF Core 6.0 temporal tables - migration rollback doesn't work #27379

Merged
merged 1 commit into from
Mar 2, 2022

Conversation

maumar
Copy link
Contributor

@maumar maumar commented Feb 4, 2022

Problem was that we were incorrectly using old table schema rather than history table schema when we were creating DropTableOperation for the history table, after versioning has been disabled.
Fix is to use the correct value.

Fixes #27375


Description

Problem was that we were incorrectly using actual table schema rather than history table schema when we were creating DropTableOperation for the history table, after versioning has been disabled.

Customer impact

Customers were unable to use revert temporal table to a regular table if the history table schema was different than the actual table schema.

How found

Reported by a customer on 6.0

Regression

No. Temporal tables is a new feature in 6.0

Testing

Added test for the affected scenario.

Risk

Minimal. The fix is trivial, correcting obviously incorrect value. Code path affected is very isolated - converting from temporal table to regular and doesn't get executed for any other scenario. Added a quirk to revert to old behavior, just in case.

@AndriySvyryd AndriySvyryd modified the milestones: 6.0.3, 6.0.x Feb 7, 2022
…n't work

Problem was that we were incorrectly using old table schema rather than history table schema when we were creating DropTableOperation for the history table, after versioning has been disabled.
Fix is to use the correct value.

Fixes #27375
@AndriySvyryd AndriySvyryd modified the milestones: 6.0.x, 6.0.3 Feb 7, 2022
@AndriySvyryd AndriySvyryd modified the milestones: 6.0.3, 6.0.4 Feb 15, 2022
@dougbu dougbu merged commit cc54787 into release/6.0 Mar 2, 2022
@dougbu dougbu deleted the fix27375_60 branch March 2, 2022 01:19
@ajcvickers ajcvickers removed this from the 6.0.4 milestone Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants