Bugfixes
- 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:
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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user