diff --git a/src/NzbDrone.Core/Datastore/Migration/000_database_engine_version_check.cs b/src/NzbDrone.Core/Datastore/Migration/000_database_engine_version_check.cs index 343bf3cde..7ac70ef80 100644 --- a/src/NzbDrone.Core/Datastore/Migration/000_database_engine_version_check.cs +++ b/src/NzbDrone.Core/Datastore/Migration/000_database_engine_version_check.cs @@ -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) diff --git a/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationController.cs b/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationController.cs index dfdbf5217..8021b13d6 100644 --- a/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationController.cs +++ b/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationController.cs @@ -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())