From 41eadd55cebfe9279acc90699436e5b5a6ee2967 Mon Sep 17 00:00:00 2001 From: Arthur Vickers Date: Wed, 2 Mar 2022 10:13:47 +0000 Subject: [PATCH] Remove quirks --- .../Migrations/SqlServerMigrationsSqlGenerator.cs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/EFCore.SqlServer/Migrations/SqlServerMigrationsSqlGenerator.cs b/src/EFCore.SqlServer/Migrations/SqlServerMigrationsSqlGenerator.cs index b2f86808bb5..616cbdcc5d1 100644 --- a/src/EFCore.SqlServer/Migrations/SqlServerMigrationsSqlGenerator.cs +++ b/src/EFCore.SqlServer/Migrations/SqlServerMigrationsSqlGenerator.cs @@ -2443,18 +2443,8 @@ alterTableOperation.OldTable[SqlServerAnnotationNames.TemporalHistoryTableSchema if (historyTableName != null) { - var useOldBehavior27375 = AppContext.TryGetSwitch("Microsoft.EntityFrameworkCore.Issue27375", out var enabled27375) - && enabled27375; - if (!useOldBehavior27375) - { - operations.Add( - new DropTableOperation { Name = historyTableName, Schema = historyTableSchema }); - } - else - { - operations.Add( - new DropTableOperation { Name = historyTableName, Schema = alterTableOperation.OldTable.Schema }); - } + operations.Add( + new DropTableOperation { Name = historyTableName, Schema = historyTableSchema }); } operations.Add(operation);