diff --git a/gradle/changelog/change_sqlite_connection_path.yaml b/gradle/changelog/change_sqlite_connection_path.yaml new file mode 100644 index 0000000000..2e9b3ecce8 --- /dev/null +++ b/gradle/changelog/change_sqlite_connection_path.yaml @@ -0,0 +1,2 @@ +- type: fixed + description: Adjust connection string to match windows path resolver diff --git a/scm-persistence/src/main/java/sonia/scm/store/sqlite/SQLiteQueryableStoreFactory.java b/scm-persistence/src/main/java/sonia/scm/store/sqlite/SQLiteQueryableStoreFactory.java index f109fb7aba..4bfed5a5ee 100644 --- a/scm-persistence/src/main/java/sonia/scm/store/sqlite/SQLiteQueryableStoreFactory.java +++ b/scm-persistence/src/main/java/sonia/scm/store/sqlite/SQLiteQueryableStoreFactory.java @@ -80,7 +80,7 @@ public class SQLiteQueryableStoreFactory implements QueryableStoreFactory { @ConfigValue(key = "queryableStore.leakDetectionThreshold", defaultValue = DEFAULT_LEAK_DETECTION_THRESHOLD_IN_SECONDS) int leakDetectionThresholdInSeconds ) { this( - "jdbc:sqlite:" + contextProvider.resolve(Path.of("scm.db?shared_cache=true&journal_mode=WAL")), + "jdbc:sqlite:" + contextProvider.resolve(Path.of("scm.db")) + "?shared_cache=true&journal_mode=WAL", objectMapper, keyGenerator, pluginLoader.getExtensionProcessor().getQueryableTypes(),