mirror of
https://github.com/Sonarr/Sonarr
synced 2025-12-15 21:03:56 +01:00
Update renamed generator id for PostgreSQL in FluentMigrator
This commit is contained in:
parent
1178c98341
commit
15f5ffd3f0
2 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ public DatabaseEngineVersionCheck()
|
|||
public override void Up()
|
||||
{
|
||||
IfDatabase("sqlite").Execute.WithConnection(LogSqliteVersion);
|
||||
IfDatabase("postgres").Execute.WithConnection(LogPostgresVersion);
|
||||
IfDatabase("postgresql").Execute.WithConnection(LogPostgresVersion);
|
||||
}
|
||||
|
||||
private void LogSqliteVersion(IDbConnection conn, IDbTransaction tran)
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public void Migrate(string connectionString, MigrationContext migrationContext,
|
|||
|
||||
_logger.Info("*** Migrating {0} ***", connectionString);
|
||||
|
||||
var db = databaseType == DatabaseType.SQLite ? "sqlite" : "postgres";
|
||||
var db = databaseType == DatabaseType.SQLite ? "sqlite" : "postgresql";
|
||||
|
||||
var serviceProvider = new ServiceCollection()
|
||||
.AddLogging(b => b.AddNLog())
|
||||
|
|
|
|||
Loading…
Reference in a new issue