Skip to content

Commit

Permalink
Merge pull request #134 from Lombiq/issue/OSOE-652
Browse files Browse the repository at this point in the history
OSOE-652: Empty content type.
  • Loading branch information
Psichorex authored Jul 6, 2023
2 parents 4703acf + e82d057 commit b23f37f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ namespace Lombiq.HelpfulExtensions.Extensions.ContentTypes;

public static class ContentTypes
{
public const string Empty = nameof(Empty);
public const string Page = nameof(Page);
public const string SiteTexts = nameof(SiteTexts);
}
15 changes: 14 additions & 1 deletion Lombiq.HelpfulExtensions/Extensions/ContentTypes/Migrations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ public int Create()
.WithPart("FlowPart", part => part.WithPosition("2"))
);

return 2;
_contentDefinitionManager.AlterTypeDefinition(Empty, builder => builder
.WithDescription("A base content type for ad-hoc welding parts or fields on.")
);

return 3;
}

public int UpdateFrom1()
Expand All @@ -46,4 +50,13 @@ public int UpdateFrom1()

return 2;
}

public int UpdateFrom2()
{
_contentDefinitionManager.AlterTypeDefinition(Empty, builder => builder
.WithDescription("A base content type for ad-hoc welding parts or fields on.")
);

return 3;
}
}

0 comments on commit b23f37f

Please sign in to comment.