Replace ToLower calls with case insensitive comparison

This commit is contained in:
Ronald Barendse
2021-07-13 13:41:02 +02:00
parent 69ebd6aebd
commit 2befd73640

View File

@@ -517,7 +517,7 @@ namespace Umbraco.Core.Persistence.SqlSyntax
return string.Empty;
// HACK: probably not needed with latest changes
if (column.DefaultValue.ToString().ToLower().Equals("getdate()".ToLower()))
if (string.Equals(column.DefaultValue.ToString(), "GETDATE()", StringComparison.OrdinalIgnoreCase))
column.DefaultValue = SystemMethods.CurrentDateTime;
// see if this is for a system method