-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
EF Core 6.0 temporal tables - migration rollback doesn't work #27375
Labels
area-temporal-tables
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
Servicing-approved
type-bug
Milestone
Comments
maumar
added a commit
that referenced
this issue
Feb 4, 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
maumar
added a commit
that referenced
this issue
Feb 4, 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
We are using actual table schema, rather than history table schema when we generate the DROP TABLE for history table. |
maumar
added
the
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
label
Feb 4, 2022
maumar
added a commit
that referenced
this issue
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area-temporal-tables
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
Servicing-approved
type-bug
By adding Temporal Table to an existing table (with different schema than default), the applied migration cannot be rolled back.
Update-Database
Rollback the migration
Update-Database -Migration 20220204152523_init
It seems the schema is missing in the generated SQL for dropping the history table.
Sample Project:
EfCore6-TemporalTables.zip
The text was updated successfully, but these errors were encountered: