Changed all MaxLength to be 64, 128, 256, or 2048 probably we need to review this
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
@@ -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 =>
|
||||
{
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user