mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
Fixed: Correctly add parameters to migrations 36 and 154
This commit is contained in:
parent
dbb24108f1
commit
b1b6a91db8
@ -50,6 +50,7 @@ private void ConvertQualityProfiles(IDbConnection conn, IDbTransaction tran)
|
||||
updateCmd.CommandText = "UPDATE QualityProfiles SET Items = ? WHERE Id = ?";
|
||||
var param = updateCmd.CreateParameter();
|
||||
qualityProfileItemConverter.SetValue(param, items);
|
||||
updateCmd.Parameters.Add(param);
|
||||
updateCmd.AddParameter(id);
|
||||
|
||||
updateCmd.ExecuteNonQuery();
|
||||
@ -100,6 +101,7 @@ private void ConvertQualityModel(IDbConnection conn, IDbTransaction tran, string
|
||||
updateCmd.CommandText = "UPDATE " + tableName + " SET Quality = ? WHERE Quality = ?";
|
||||
var param = updateCmd.CreateParameter();
|
||||
qualityModelConverter.SetValue(param, qualityNew);
|
||||
updateCmd.Parameters.Add(param);
|
||||
updateCmd.AddParameter(qualityJson);
|
||||
|
||||
updateCmd.ExecuteNonQuery();
|
||||
|
@ -89,6 +89,7 @@ private void UpdateLanguage(IDbConnection conn, IDbTransaction tran)
|
||||
updateMovieFilesCmd.CommandText = $"UPDATE MovieFiles SET Languages = ? WHERE MovieId IN ({movieIds})";
|
||||
var param = updateMovieFilesCmd.CreateParameter();
|
||||
languageConverter.SetValue(param, language);
|
||||
updateMovieFilesCmd.Parameters.Add(param);
|
||||
|
||||
updateMovieFilesCmd.ExecuteNonQuery();
|
||||
}
|
||||
@ -99,6 +100,7 @@ private void UpdateLanguage(IDbConnection conn, IDbTransaction tran)
|
||||
updateHistoryCmd.CommandText = $"UPDATE History SET Languages = ? WHERE MovieId IN ({movieIds})";
|
||||
var param = updateHistoryCmd.CreateParameter();
|
||||
languageConverter.SetValue(param, language);
|
||||
updateHistoryCmd.Parameters.Add(param);
|
||||
|
||||
updateHistoryCmd.ExecuteNonQuery();
|
||||
}
|
||||
@ -109,6 +111,7 @@ private void UpdateLanguage(IDbConnection conn, IDbTransaction tran)
|
||||
updateBlacklistCmd.CommandText = $"UPDATE Blacklist SET Languages = ? WHERE MovieId IN ({movieIds})";
|
||||
var param = updateBlacklistCmd.CreateParameter();
|
||||
languageConverter.SetValue(param, language);
|
||||
updateBlacklistCmd.Parameters.Add(param);
|
||||
|
||||
updateBlacklistCmd.ExecuteNonQuery();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user