Changed all MaxLength to be 64, 128, 256, or 2048 probably we need to review this

This commit is contained in:
Jonathan Bourdon
2024-08-04 21:52:09 -04:00
parent 143774340f
commit e617b5ffd3
9 changed files with 34 additions and 32 deletions

View File

@@ -18,7 +18,7 @@ public class Creator
public class About
{
[MaxLength(255)] public string? Title { get; set; }
[MaxLength(255)] public string? Description { get; set; }
[MaxLength(2048)] public string? Description { get; set; }
}
public class ProfileColors

View File

@@ -12,7 +12,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
namespace Hutopy.Web.Features.Contents.Migrations
{
[DbContext(typeof(ContentDbContext))]
[Migration("20240804071117_Initial")]
[Migration("20240805012309_Initial")]
partial class Initial
{
/// <inheritdoc />
@@ -119,8 +119,8 @@ namespace Hutopy.Web.Features.Contents.Migrations
.HasColumnType("uuid");
b1.Property<string>("Description")
.HasMaxLength(255)
.HasColumnType("character varying(255)");
.HasMaxLength(2048)
.HasColumnType("character varying(2048)");
b1.Property<string>("Title")
.HasMaxLength(255)

View File

@@ -24,7 +24,7 @@ namespace Hutopy.Web.Features.Contents.Migrations
CreatedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
Name = table.Column<string>(type: "character varying(255)", maxLength: 255, nullable: false),
About_Title = table.Column<string>(type: "character varying(255)", maxLength: 255, nullable: true),
About_Description = table.Column<string>(type: "character varying(255)", maxLength: 255, nullable: true)
About_Description = table.Column<string>(type: "character varying(2048)", maxLength: 2048, nullable: true)
},
constraints: table =>
{

View File

@@ -116,8 +116,8 @@ namespace Hutopy.Web.Features.Contents.Migrations
.HasColumnType("uuid");
b1.Property<string>("Description")
.HasMaxLength(255)
.HasColumnType("character varying(255)");
.HasMaxLength(2048)
.HasColumnType("character varying(2048)");
b1.Property<string>("Title")
.HasMaxLength(255)