Oops, fixes PK creation logic for MySQL (had the wrong boolean)

This commit is contained in:
Shannon
2015-09-14 10:33:37 +02:00
parent 7beb21ad66
commit 8d24ac3651
2 changed files with 4 additions and 4 deletions

View File

@@ -457,9 +457,9 @@ namespace Umbraco.Core.Persistence.SqlSyntax
if (column.DefaultValue == null)
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
//hack - probably not needed with latest changes
if (column.DefaultValue.ToString().ToLower().Equals("getdate()".ToLower()))
return string.Format(DefaultValueFormat, column.DefaultValue);
column.DefaultValue = SystemMethods.CurrentDateTime;
// see if this is for a system method
if (column.DefaultValue is SystemMethods)