Fix all to Dotnet9

This commit is contained in:
2025-04-02 13:26:13 -04:00
parent 98fc6329b5
commit 914440087e
10 changed files with 44 additions and 22 deletions

View File

@@ -50,7 +50,7 @@ public class PresentationInfos
[MaxLength(10000)] public string ImagesText { get; set; } = string.Empty;
[MaxLength(2000)] public string VideoSubtitle { get; set; } = string.Empty;
[MaxLength(2000)] public string VideoSubtitleMain { get; set; } = string.Empty;
[MaxLength(2000)] public string VideoUrlMain { get; set; } = string.Empty;
[MaxLength(1024)] public string VideoUrlMain { get; set; } = string.Empty;
[MaxLength(1024)] public string VideoUrl { get; set; } = string.Empty;
[MaxLength(10000)] public string VideoText { get; set; } = string.Empty;
}

View File

@@ -21,7 +21,7 @@ namespace Hutopy.Web.Features.Contents.Data.Migrations
#pragma warning disable 612, 618
modelBuilder
.HasDefaultSchema("Content")
.HasAnnotation("ProductVersion", "9.0.3")
.HasAnnotation("ProductVersion", "8.0.14")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
@@ -303,8 +303,8 @@ namespace Hutopy.Web.Features.Contents.Data.Migrations
b1.Property<string>("VideoUrlMain")
.IsRequired()
.HasMaxLength(2000)
.HasColumnType("character varying(2000)");
.HasMaxLength(1024)
.HasColumnType("character varying(1024)");
b1.HasKey("CreatorId");

View File

@@ -116,7 +116,18 @@ namespace Hutopy.Web.Features.Contents.Data.Migrations
oldClrType: typeof(string),
oldType: "character varying(2000)",
oldMaxLength: 2000);
migrationBuilder.AlterColumn<string>(
name: "VideoUrlMain",
schema: "Content",
table: "PresentationInfos",
type: "character varying(1024)",
maxLength: 1024,
nullable: false,
oldClrType: typeof(string),
oldType: "character varying(2000)",
oldMaxLength: 2000);
migrationBuilder.AlterColumn<string>(
name: "MainImageUrl",
schema: "Content",
@@ -306,7 +317,18 @@ namespace Hutopy.Web.Features.Contents.Data.Migrations
oldClrType: typeof(string),
oldType: "character varying(1024)",
oldMaxLength: 1024);
migrationBuilder.AlterColumn<string>(
name: "VideoUrlMain",
schema: "Content",
table: "PresentationInfos",
type: "character varying(2000)",
maxLength: 2000,
nullable: false,
oldClrType: typeof(string),
oldType: "character varying(1024)",
oldMaxLength: 1024);
migrationBuilder.AlterColumn<string>(
name: "MainImageUrl",
schema: "Content",

View File

@@ -300,8 +300,8 @@ namespace Hutopy.Web.Features.Contents.Data.Migrations
b1.Property<string>("VideoUrlMain")
.IsRequired()
.HasMaxLength(2000)
.HasColumnType("character varying(2000)");
.HasMaxLength(1024)
.HasColumnType("character varying(1024)");
b1.HasKey("CreatorId");