diff --git a/Oqtane.Server/Migrations/EntityBuilders/BaseEntityBuilder.cs b/Oqtane.Server/Migrations/EntityBuilders/BaseEntityBuilder.cs index c75558b7..e5ac664b 100644 --- a/Oqtane.Server/Migrations/EntityBuilders/BaseEntityBuilder.cs +++ b/Oqtane.Server/Migrations/EntityBuilders/BaseEntityBuilder.cs @@ -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); } }