[chronojump] Updated DB to 1.27: double contacts time frm 1000ms to 300ms
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Updated DB to 1.27: double contacts time frm 1000ms to 300ms
- Date: Wed, 10 Feb 2016 10:41:50 +0000 (UTC)
commit 586b7837e25e5793e90b83e2aaf646a1b8c4f38a
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Feb 10 11:39:40 2016 +0100
Updated DB to 1.27: double contacts time frm 1000ms to 300ms
src/sqlite/main.cs | 12 +++++++++++-
src/sqlite/preferences.cs | 4 ++--
2 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/src/sqlite/main.cs b/src/sqlite/main.cs
index 02b42ba..38ca756 100644
--- a/src/sqlite/main.cs
+++ b/src/sqlite/main.cs
@@ -77,7 +77,7 @@ class Sqlite
/*
* Important, change this if there's any update to database
*/
- static string lastChronojumpDatabaseVersion = "1.26";
+ static string lastChronojumpDatabaseVersion = "1.27";
public Sqlite() {
}
@@ -1854,6 +1854,15 @@ class Sqlite
SqlitePreferences.Update ("databaseVersion", newVersion, true);
currentVersion = newVersion;
}
+ if(currentVersion == "1.26") {
+ LogB.SQL("Changing runDoubleContactsMS and runIDoubleContactsMS from 1000ms
to 300ms");
+ SqlitePreferences.Update("runDoubleContactsMS", "300", true);
+ SqlitePreferences.Update("runIDoubleContactsMS", "300", true);
+
+ newVersion = "1.27";
+ SqlitePreferences.Update ("databaseVersion", newVersion, true);
+ currentVersion = newVersion;
+ }
// --- add more updates here
@@ -2009,6 +2018,7 @@ class Sqlite
SqliteExecuteAuto.addChronojumpProfileAndBilateral();
//changes [from - to - desc]
+ //1.26 - 1.27 Converted DB to 1.27 Changing runDoubleContactsMS and runIDoubleContactsMS from
1000ms to 300ms
//1.25 - 1.26 Converted DB to 1.26 Changed Inclinated to Inclined
//1.24 - 1.25 Converted DB to 1.25 Language defaults to (empty string), means detected
//1.23 - 1.24 Converted DB to 1.24 Delete runISpeedStartArrival and add 4 double contacts
configs
diff --git a/src/sqlite/preferences.cs b/src/sqlite/preferences.cs
index d764daa..5d49495 100644
--- a/src/sqlite/preferences.cs
+++ b/src/sqlite/preferences.cs
@@ -72,10 +72,10 @@ class SqlitePreferences : Sqlite
Insert ("runDoubleContactsMode",
Constants.DoubleContact.LAST.ToString(), dbcmdTr);
- Insert ("runDoubleContactsMS", "1000", dbcmdTr);
+ Insert ("runDoubleContactsMS", "300", dbcmdTr);
Insert ("runIDoubleContactsMode",
Constants.DoubleContact.AVERAGE.ToString(), dbcmdTr);
- Insert ("runIDoubleContactsMS", "1000", dbcmdTr);
+ Insert ("runIDoubleContactsMS", "300", dbcmdTr);
Random rnd = new Random();
string machineID = rnd.Next().ToString();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]