[longomatch] Add a default ID if its empty in the migration



commit 2778c42e5b2494401afde192c79b062d46ff0897
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Oct 28 08:44:43 2014 +0100

    Add a default ID if its empty in the migration

 LongoMatch.Migration/Converter.cs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Migration/Converter.cs b/LongoMatch.Migration/Converter.cs
index b2ddf1a..51401ea 100644
--- a/LongoMatch.Migration/Converter.cs
+++ b/LongoMatch.Migration/Converter.cs
@@ -151,6 +151,9 @@ namespace LongoMatch.Migration
                                dashboard.HalfFieldBackground = Config.GoalBackground;
                        }
                        dashboard.ID = cats.ID;
+                       if (dashboard.ID == Guid.Empty) {
+                               dashboard.ID = Guid.NewGuid;
+                       }
                        dashboard.GamePeriods = new List<string> { "1", "2" };
                        
                        foreach (Category cat in cats) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]