- Added handling for DeepL exceptions
- Added debug logging for im- and exporting
- When executing the post script for the unique id migration, ensure
  that new id are generated, only when no id exists
- Fixed section export by loading references to parents
This commit is contained in:
tsommer committed 2023-02-11 21:22:25 +01:00
1 parent 59da2c23a8
commit 4c6f5b59f0
5 files changed
+98 -25

No files matched your search

@@ -7,16 +7,28 @@ public static class Script202211AddUniqueIds
public static async Task PostMigrationAsync(DataContext db)
{
await foreach (var setting in db.Settings)
setting.UniqueId = Guid.NewGuid();
{
if(setting.UniqueId == Guid.Empty)
setting.UniqueId = Guid.NewGuid();
}
await foreach(var section in db.Sections)
section.UniqueId = Guid.NewGuid();
{
if(section.UniqueId == Guid.Empty)
section.UniqueId = Guid.NewGuid();
}
await foreach (var textElement in db.TextElements)
textElement.UniqueId = Guid.NewGuid();
{
if(textElement.UniqueId == Guid.Empty)
textElement.UniqueId = Guid.NewGuid();
}
await foreach (var translation in db.Translations)
translation.UniqueId = Guid.NewGuid();
{
if(translation.UniqueId == Guid.Empty)
translation.UniqueId = Guid.NewGuid();
}
await db.SaveChangesAsync();
}