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:
Shannon
2015-09-11 13:55:13 +02:00
parent 4bb89c1827
commit 488ba05eda
6 changed files with 79 additions and 19 deletions

View File

@@ -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)