Skip to content

Commit 36dc641

Browse files
committed
Temporary fix for DropTable/CreateTable issue around temporal tables
Fixes dotnet#35162
1 parent d1e1dfa commit 36dc641

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/EFCore.SqlServer/Migrations/SqlServerMigrationsSqlGenerator.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -2606,9 +2606,8 @@ private IReadOnlyList<MigrationOperation> RewriteOperations(
26062606
operations.Add(operation);
26072607
}
26082608

2609-
// we removed the table, so we no longer need it's temporal information
2610-
// there will be no more operations involving this table
2611-
temporalTableInformationMap.Remove((tableName, schema));
2609+
// Note that we leave the information in temporalTableInformationMap in case there's a later CreateTable operation
2610+
// on the same table name (see #35162).
26122611

26132612
break;
26142613
}

0 commit comments

Comments
 (0)