Oops, fixes PK creation logic for MySQL (had the wrong boolean)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user