Moved the SQL insert (to create the new relation type) to a separate DB migration for v7.3.0.

(This may need to be reviewed by Core team?)
This commit is contained in:
leekelleher
2015-01-03 22:20:19 +00:00
parent 0a6a41e4c2
commit eace046342
3 changed files with 27 additions and 1 deletions

View File

@@ -269,7 +269,6 @@ namespace Umbraco.Core.Persistence.Migrations.Initial
private void CreateUmbracoRelationTypeData()
{
_database.Insert("umbracoRelationType", "id", false, new RelationTypeDto { Id = 1, Alias = Constants.Conventions.Relations.RelateDocumentOnCopy, ChildObjectType = new Guid(Constants.ObjectTypes.Document), ParentObjectType = new Guid(Constants.ObjectTypes.Document), Dual = true, Name = "Relate Document On Copy" });
_database.Insert("umbracoRelationType", "id", false, new RelationTypeDto { Id = 2, Alias = Constants.Conventions.Relations.RelateParentDocumentOnDelete, ChildObjectType = new Guid(Constants.ObjectTypes.Document), ParentObjectType = new Guid(Constants.ObjectTypes.Document), Dual = false, Name = "Relate Parent Document On Delete" });
}
private void CreateCmsTaskTypeData()