Set property type group default level to 1

This commit is contained in:
Ronald Barendse
2021-06-17 09:12:00 +02:00
parent ac69bf1448
commit 5fd09b43f3

View File

@@ -30,7 +30,7 @@ namespace Umbraco.Core.Persistence.Dtos
[Column("level")]
[Constraint(Default = 1)] // TODO We default to 1 (property group) for backwards compatibility, but should use zero/no default at some point.
public short Level { get; set; }
public short Level { get; set; } = 1;
[Column("contenttypeNodeId")]
[ForeignKey(typeof(ContentTypeDto), Column = "nodeId")]