1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-03-05 13:20:20 -05:00

Update renamed generator id for PostgreSQL in FluentMigrator

This commit is contained in:
Bogdan
2025-09-28 18:13:25 +03:00
committed by Mark McDowall
parent 6f287cb1de
commit bef2986357
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ namespace NzbDrone.Core.Datastore.Migration
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)

View File

@@ -31,7 +31,7 @@ namespace NzbDrone.Core.Datastore.Migration.Framework
_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())