deploy-293 - fix

This commit is contained in:
Stephan
2017-04-24 16:52:31 +02:00
parent 1adbe9ddcb
commit 9d7975d970

View File

@@ -19,7 +19,7 @@ namespace Umbraco.Core.Persistence.Migrations.Upgrades.TargetVersionSevenSixZero
private static string UpdateTemplateGuids(Database database)
{
var updates = database.Query<dynamic>("SELECT id, text FROM umbracoNode WHERE nodeObjectType = @guid", Constants.ObjectTypes.TemplateTypeGuid)
var updates = database.Query<dynamic>("SELECT id, text FROM umbracoNode WHERE nodeObjectType = @guid", new { guid = Constants.ObjectTypes.TemplateTypeGuid})
.Select(template => Tuple.Create((int) template.id, ("template____" + (string) template.text).ToGuid()))
.ToList();