[chronojump] DB:1.83 Added missing agility_t_test image



commit c05486d14505e16664e535580a03b6152b16335a
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Jan 28 13:42:19 2020 +0100

    DB:1.83 Added missing agility_t_test image

 src/sqlite/main.cs    | 9 ++++++++-
 src/sqlite/runType.cs | 1 +
 2 files changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/src/sqlite/main.cs b/src/sqlite/main.cs
index 331d57cb..e76d1ebf 100644
--- a/src/sqlite/main.cs
+++ b/src/sqlite/main.cs
@@ -129,7 +129,7 @@ class Sqlite
        /*
         * Important, change this if there's any update to database
         */
-       static string lastChronojumpDatabaseVersion = "1.82";
+       static string lastChronojumpDatabaseVersion = "1.83";
 
        public Sqlite() {
        }
@@ -2592,6 +2592,12 @@ class Sqlite
 
                                currentVersion = updateVersion("1.82");
                        }
+                       if(currentVersion == "1.82")
+                       {
+                               LogB.SQL("Added missing agility_t_test image");
+                               SqliteEvent.GraphLinkInsert (Constants.RunTable, "Agility-T-Test", 
"agility_t_test.png", true);
+                               currentVersion = updateVersion("1.83");
+                       }
 
 
                        /*
@@ -2805,6 +2811,7 @@ class Sqlite
                //changes [from - to - desc]
 //just testing: 1.79 - 1.80 Converted DB to 1.80 Created table ForceSensorElasticBandGlue and moved 
stiffnessString records there
 //
+               //1.82 - 1.83 Converted DB to 1.83 Added missing agility_t_test image
                //1.81 - 1.82 Converted DB to 1.82 Doing alter table jump, jumpRj, tempJumpRj add datetime
                //1.80 - 1.81 Converted DB to 1.81 Inserted forceSensorCaptureFeedbackActive /At /Range
                //1.79 - 1.80 Converted DB to 1.80 Inserted forceSensorElasticEccMinDispl, ...
diff --git a/src/sqlite/runType.cs b/src/sqlite/runType.cs
index 94eda250..6bb5d3f6 100644
--- a/src/sqlite/runType.cs
+++ b/src/sqlite/runType.cs
@@ -337,6 +337,7 @@ class SqliteRunType : Sqlite
                                SqliteEvent.GraphLinkInsert (Constants.RunTable, "Agility-ZigZag", 
"agility_zigzag.png", true, dbcmdTr);
                                SqliteEvent.GraphLinkInsert (Constants.RunTable, "Margaria", "margaria.png", 
true, dbcmdTr);
                                SqliteEvent.GraphLinkInsert (Constants.RunTable, "Gesell-DBT", 
"gesell_dbt.png", true, dbcmdTr);
+                               SqliteEvent.GraphLinkInsert (Constants.RunTable, "Agility-T-Test", 
"agility_t_test.png", true, dbcmdTr);
                        }
                        tr.Commit();
                }


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