[chronojump/michrolab] Needed file for commit: "admin (Networks) can use another DB ..."
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/michrolab] Needed file for commit: "admin (Networks) can use another DB ..."
- Date: Thu, 14 Jul 2022 16:37:54 +0000 (UTC)
commit c32b29751d125b94a18c7bd73faa9f0cb9f4615c
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Jun 8 13:07:38 2022 +0200
Needed file for commit: "admin (Networks) can use another DB ..."
src/sqlite/main.cs | 13 +++++++++++++
1 file changed, 13 insertions(+)
---
diff --git a/src/sqlite/main.cs b/src/sqlite/main.cs
index a04343ba0..9ebec9ea0 100644
--- a/src/sqlite/main.cs
+++ b/src/sqlite/main.cs
@@ -313,6 +313,19 @@ class Sqlite
set { currentVersion = value; }
}
+ //used on Chronojump-Networks admin (if Config.DataDir is != "")
+ //Config.DataDirStatic has been changed before
+ public static void SetHome ()
+ {
+ home = Util.GetDatabaseDir ();
+
+ //DB will be updated in gui/networks
+ sqlFile = home + Path.DirectorySeparatorChar + "chronojump.db";
+
+ connectionString = "version = 3; Data source = " + sqlFile;
+ }
+
+ //used on import
public static void setSqlFilePath(string filePath)
{
sqlFile = filePath;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]