Merge
This commit is contained in:
@@ -164,7 +164,7 @@ namespace Umbraco.Core.Persistence.SqlSyntax
|
|||||||
return string.Format(DefaultValueFormat, method);
|
return string.Format(DefaultValueFormat, method);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (column.DefaultValue.ToString().Equals("getdate()"))
|
if (column.DefaultValue.ToString().ToLower().Equals("getdate()".ToLower()))
|
||||||
return "DEFAULT CURRENT_TIMESTAMP";
|
return "DEFAULT CURRENT_TIMESTAMP";
|
||||||
|
|
||||||
return string.Format(DefaultValueFormat, column.DefaultValue);
|
return string.Format(DefaultValueFormat, column.DefaultValue);
|
||||||
|
|||||||
@@ -357,6 +357,10 @@ namespace Umbraco.Core.Persistence.SqlSyntax
|
|||||||
if (column.DefaultValue == null)
|
if (column.DefaultValue == null)
|
||||||
return string.Empty;
|
return string.Empty;
|
||||||
|
|
||||||
|
// 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.ToString().ToLower().Equals("getdate()".ToLower()))
|
||||||
|
return string.Format(DefaultValueFormat, column.DefaultValue);
|
||||||
|
|
||||||
// see if this is for a system method
|
// see if this is for a system method
|
||||||
if (column.DefaultValue is SystemMethods)
|
if (column.DefaultValue is SystemMethods)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user