urlHash column has to be 20 chars because SHA1 uses more bytes than MD5

This commit is contained in:
Sebastiaan Janssen
2016-08-05 11:51:08 +02:00
committed by GitHub
parent 6c271d92f9
commit 3dcba7a6b0

View File

@@ -39,7 +39,7 @@ namespace Umbraco.Core.Persistence.Migrations.Upgrades.TargetVersionSevenFiveZer
.WithColumn("createDateUtc").AsDateTime().NotNullable()
.WithColumn("url").AsString(2048).NotNullable()
.WithColumn("contentKey").AsGuid().NotNullable()
.WithColumn("urlHash").AsString(16).NotNullable();
.WithColumn("urlHash").AsString(20).NotNullable();
localContext.Create.Index("IX_" + umbracoRedirectUrlTableName).OnTable(umbracoRedirectUrlTableName)
.OnColumn("urlHash")