Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSOE-652: Empty content type. #134

Merged
merged 4 commits into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}