Merge pull request #5485 from sbwalker/dev

fix compatibility issue
This commit is contained in:
Shaun Walker
2025-08-13 14:55:32 -04:00
committed by GitHub

View File

@ -558,7 +558,15 @@ namespace Oqtane.Migrations.EntityBuilders
[Obsolete("UpdateColumn(columnName, value, type, condition) is deprecated. Use UpdateData(column, value, condition) instead", false)] [Obsolete("UpdateColumn(columnName, value, type, condition) is deprecated. Use UpdateData(column, value, condition) instead", false)]
public void UpdateColumn(string columnName, string value, string type, string condition) public void UpdateColumn(string columnName, string value, string type, string condition)
{ {
object obj = (type == "bool" && value == "1") ? true : false; // boolean values had custom logic for PostgreSQL object obj;
if (type == "bool")
{
obj = (value == "1") ? true : false; // boolean values had custom logic for PostgreSQL
}
else
{
obj = value;
}
UpdateData([columnName], [obj], condition); UpdateData([columnName], [obj], condition);
} }
} }