Database creation/migration for UFM Label editor data-types (#20055)

* Database creation/migration for Label editor data-type

The server-side migration to compliment the client-side feature #19610

* Update src/Umbraco.Infrastructure/Migrations/Upgrade/V_16_3_0/MigrateMediaTypeLabelProperties.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Updated integration test with new data-type items count

* Update src/Umbraco.Infrastructure/Migrations/Install/DatabaseDataCreator.cs

Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>

* Apply suggestion from @kjac

Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>

* Apply suggestion from @kjac

Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>

* Apply suggestion from @kjac

Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>

* Apply suggestion from @kjac

Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>

* Apply suggestion from @kjac

Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>

* Updated to use `switch` pattern matching

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>
This commit is contained in:
Lee Kelleher
2025-09-03 10:45:56 +01:00
committed by GitHub
parent 96070fb6ab
commit 355f5c373f
5 changed files with 249 additions and 35 deletions

View File

@@ -13,6 +13,8 @@ public static partial class Constants
public const int LabelDateTime = -94;
public const int LabelTime = -98;
public const int LabelDecimal = -99;
public const int LabelBytes = -104;
public const int LabelPixels = -105;
public const int Textarea = -89;
public const int Textbox = -88;
@@ -225,6 +227,16 @@ public static partial class Constants
/// </summary>
public const string LabelDecimal = "8f1ef1e1-9de4-40d3-a072-6673f631ca64";
/// <summary>
/// Guid for Label as bytes
/// </summary>
public const string LabelBytes = "ba5bdbe6-ab3e-46a8-82b3-2c45f10bc47f";
/// <summary>
/// Guid for Label as pixels
/// </summary>
public const string LabelPixels = "5eb57825-e15e-4fc7-8e37-fca65cdafbde";
/// <summary>
/// Guid for Content Picker
/// </summary>