fix compatibility issue

This commit is contained in:
sbwalker
2025-08-13 14:55:18 -04:00
parent e900d2f35a
commit 9a57cae4bd

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)]
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);
}
}