Replace ToLower calls with case insensitive comparison
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user