[chronojump] Fixed import DB 2.32



commit d871b40305bd7d5a1e49013f5b1c8951a12a5618
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Jun 13 18:35:57 2022 +0200

    Fixed import DB 2.32

 src/sqlite/main.cs | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/sqlite/main.cs b/src/sqlite/main.cs
index de9793605..b2839b293 100644
--- a/src/sqlite/main.cs
+++ b/src/sqlite/main.cs
@@ -3154,11 +3154,6 @@ class Sqlite
                                        }
                                }
 
-                               //adding the insertDefault here because now it will be in cm
-                               ex_l = SqliteRunEncoderExercise.Select(true, -1);
-                               if(ex_l == null || ex_l.Count == 0)
-                                       SqliteRunEncoderExercise.insertDefault();
-
                                currentVersion = updateVersion("2.33");
                        }
                        if(currentVersion == "2.33")
@@ -3288,6 +3283,11 @@ class Sqlite
                                        LogB.SQL("Catched at Doing ALTER TABLE RunEncoder added angle.");
                                }
 
+                               //adding the insertDefault here because now it will be in cm
+                               List<RunEncoderExercise> ex_l = SqliteRunEncoderExercise.Select (true, -1);
+                               if(ex_l == null || ex_l.Count == 0)
+                                       SqliteRunEncoderExercise.insertDefault();
+
                                currentVersion = updateVersion("2.39");
                        }
 


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