Fixes upgrade issues with SQLCE and DateTime:
* DateTime's during migrations are formatted in a very explicit way * Migration's that need to execute multiple statements are fixed in SQLCE by splitting on GO
This commit is contained in:
@@ -263,7 +263,7 @@ namespace Umbraco.Core.Persistence.SqlSyntax
|
||||
/// </remarks>
|
||||
public virtual string FormatDateTime(DateTime date, bool includeTime = true)
|
||||
{
|
||||
return includeTime ? date.ToString("YYYYMMDD HH:mm:ss") : date.ToString("YYYYMMDD");
|
||||
return includeTime ? date.ToString("yyyyMMdd HH:mm:ss") : date.ToString("yyyyMMdd");
|
||||
}
|
||||
|
||||
public virtual string Format(TableDefinition table)
|
||||
|
||||
Reference in New Issue
Block a user