mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-04 01:53:52 +01:00
parent
f2870caed2
commit
be3f248a5a
1 changed files with 2 additions and 2 deletions
|
@ -112,12 +112,12 @@ namespace BTCPayServer.Hosting
|
||||||
ApplicationDbContextFactory dbContext = null;
|
ApplicationDbContextFactory dbContext = null;
|
||||||
if (!String.IsNullOrEmpty(opts.PostgresConnectionString))
|
if (!String.IsNullOrEmpty(opts.PostgresConnectionString))
|
||||||
{
|
{
|
||||||
Logs.Configuration.LogInformation($"Postgres DB used ({opts.PostgresConnectionString})");
|
Logs.Configuration.LogInformation($"Postgres DB used");
|
||||||
dbContext = new ApplicationDbContextFactory(DatabaseType.Postgres, opts.PostgresConnectionString);
|
dbContext = new ApplicationDbContextFactory(DatabaseType.Postgres, opts.PostgresConnectionString);
|
||||||
}
|
}
|
||||||
else if (!String.IsNullOrEmpty(opts.MySQLConnectionString))
|
else if (!String.IsNullOrEmpty(opts.MySQLConnectionString))
|
||||||
{
|
{
|
||||||
Logs.Configuration.LogInformation($"MySQL DB used ({opts.MySQLConnectionString})");
|
Logs.Configuration.LogInformation($"MySQL DB used");
|
||||||
Logs.Configuration.LogWarning("MySQL is not widely tested and should be considered experimental, we advise you to use postgres instead.");
|
Logs.Configuration.LogWarning("MySQL is not widely tested and should be considered experimental, we advise you to use postgres instead.");
|
||||||
dbContext = new ApplicationDbContextFactory(DatabaseType.MySQL, opts.MySQLConnectionString);
|
dbContext = new ApplicationDbContextFactory(DatabaseType.MySQL, opts.MySQLConnectionString);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue