diff --git a/DownKyi.Core/Storage/Database/CoverDb.cs b/DownKyi.Core/Storage/Database/CoverDb.cs index 1c5ecfa..9576116 100644 --- a/DownKyi.Core/Storage/Database/CoverDb.cs +++ b/DownKyi.Core/Storage/Database/CoverDb.cs @@ -7,9 +7,14 @@ namespace DownKyi.Core.Storage.Database public class CoverDb { private const string key = "b5018ecc-09d1-4da2-aa49-4625e41e623e"; - private readonly DbHelper dbHelper = new DbHelper(StorageManager.GetCoverIndex(), key); private readonly string tableName = "cover"; +#if DEBUG + private readonly DbHelper dbHelper = new DbHelper(StorageManager.GetCoverIndex().Replace(".db", "_debug.db")); +#else + private readonly DbHelper dbHelper = new DbHelper(StorageManager.GetCoverIndex(), key); +#endif + public CoverDb() { CreateTable(); diff --git a/DownKyi.Core/Storage/Database/HeaderDb.cs b/DownKyi.Core/Storage/Database/HeaderDb.cs index 325e4a2..28f9a48 100644 --- a/DownKyi.Core/Storage/Database/HeaderDb.cs +++ b/DownKyi.Core/Storage/Database/HeaderDb.cs @@ -7,9 +7,14 @@ namespace DownKyi.Core.Storage.Database public class HeaderDb { private const string key = "7c1f1f40-7cdf-4d11-ad28-f0137a3c5308"; - private readonly DbHelper dbHelper = new DbHelper(StorageManager.GetHeaderIndex(), key); private readonly string tableName = "header"; +#if DEBUG + private readonly DbHelper dbHelper = new DbHelper(StorageManager.GetHeaderIndex().Replace(".db", "_debug.db")); +#else + private readonly DbHelper dbHelper = new DbHelper(StorageManager.GetHeaderIndex(), key); +#endif + public HeaderDb() { CreateTable();