Skip to content

Commit c449b5a

Browse files
committed
Make COpyUpgrade able to copy message for deleted from inner section
1 parent c76bc91 commit c449b5a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

PostBuild/CopyUpgrades.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ private static BsonDocument CreateEmptyUpgradeDocument()
9696
};
9797
Dictionary<string, object> datasetUpgrades = new Dictionary<string, object> {
9898
{ "ToNew", new Dictionary<string, object>() },
99-
{ "ToOld", new Dictionary<string, object>() }
99+
{ "ToOld", new Dictionary<string, object>() },
100+
{ "MessageForDeleted", new Dictionary<string, object>() }
100101
};
101102

102103
return new BsonDocument(new Dictionary<string, object>
@@ -174,6 +175,9 @@ private static void CopySectionAccross(BsonDocument source, BsonDocument target)
174175

175176
if (source.Contains("ToOld"))
176177
CopyDictionaryAccross(source["ToOld"] as BsonDocument, target["ToOld"] as BsonDocument);
178+
179+
if (source.Contains("MessageForDeleted"))
180+
CopyDictionaryAccross(source["MessageForDeleted"] as BsonDocument, target["MessageForDeleted"] as BsonDocument);
177181
}
178182

179183
/***************************************************/

0 commit comments

Comments
 (0)