Add ability to migrate from MySQL and SQLite with EF (#4614)

This commit is contained in:
Nicolas Dorier
2023-02-10 11:43:46 +09:00
committed by GitHub
parent 753ffd401b
commit 1f8bc5b490
7 changed files with 335 additions and 10 deletions

View File

@@ -1,3 +1,5 @@
using System.IO;
namespace BTCPayServer.Configuration
{
public class DataDirectories
@@ -7,5 +9,12 @@ namespace BTCPayServer.Configuration
public string TempStorageDir { get; set; }
public string StorageDir { get; set; }
public string TempDir { get; set; }
public string ToDatadirFullPath(string path)
{
if (Path.IsPathRooted(path))
return path;
return Path.Combine(DataDir, path);
}
}
}