Fix badly formated "getdate()" default value (CE didn't like it)

This commit is contained in:
Sebastiaan Janssen
2013-01-02 11:33:56 -01:00
parent 56bcb2f804
commit 01fa4bdc78
2 changed files with 3 additions and 2 deletions

View File

@@ -358,7 +358,8 @@ namespace Umbraco.Core.Persistence.SqlSyntax
return string.Empty;
// see if this is for a system method
if (column.DefaultValue is SystemMethods)
// TODO: Actually use the SystemMethods on the DTO. For now I've put a hack in to catch getdate(), not using the others at the moment
if (column.DefaultValue is SystemMethods || column.DefaultValue.ToString().ToLower().Equals("getdate()".ToLower()))
{
string method = FormatSystemMethods((SystemMethods)column.DefaultValue);
if (string.IsNullOrEmpty(method))