diff --git a/.github/workflows/backend-ci.yml b/.github/workflows/backend-ci.yml index 90f6491..c24e237 100644 --- a/.github/workflows/backend-ci.yml +++ b/.github/workflows/backend-ci.yml @@ -7,7 +7,7 @@ on: env: AZURE_WEBAPP_NAME: hutopy-backend-api - DOTNET_VERSION: '8.0.x' + DOTNET_VERSION: '9.0.x' jobs: build_and_deploy: diff --git a/backend/Directory.Build.props b/backend/Directory.Build.props index 72c4ffc..f92f3f6 100644 --- a/backend/Directory.Build.props +++ b/backend/Directory.Build.props @@ -1,7 +1,7 @@  - net8.0 + net9.0 false enable enable diff --git a/backend/global.json b/backend/global.json index da7a596..039c683 100644 --- a/backend/global.json +++ b/backend/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "8.0.203", + "version": "9.0.201", "rollForward": "latestMinor", "allowPrerelease": false } diff --git a/backend/src/Web/Features/Contents/Data/Creator.cs b/backend/src/Web/Features/Contents/Data/Creator.cs index 9bf9999..4fa83e4 100644 --- a/backend/src/Web/Features/Contents/Data/Creator.cs +++ b/backend/src/Web/Features/Contents/Data/Creator.cs @@ -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; } diff --git a/backend/src/Web/Features/Contents/Data/Migrations/20250402024746_EnsureUrlsAre1024Chars.Designer.cs b/backend/src/Web/Features/Contents/Data/Migrations/20250402024746_EnsureUrlsAre1024Chars.Designer.cs index 2ea7213..0c0855d 100644 --- a/backend/src/Web/Features/Contents/Data/Migrations/20250402024746_EnsureUrlsAre1024Chars.Designer.cs +++ b/backend/src/Web/Features/Contents/Data/Migrations/20250402024746_EnsureUrlsAre1024Chars.Designer.cs @@ -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("VideoUrlMain") .IsRequired() - .HasMaxLength(2000) - .HasColumnType("character varying(2000)"); + .HasMaxLength(1024) + .HasColumnType("character varying(1024)"); b1.HasKey("CreatorId"); diff --git a/backend/src/Web/Features/Contents/Data/Migrations/20250402024746_EnsureUrlsAre1024Chars.cs b/backend/src/Web/Features/Contents/Data/Migrations/20250402024746_EnsureUrlsAre1024Chars.cs index ea1058e..95fe901 100644 --- a/backend/src/Web/Features/Contents/Data/Migrations/20250402024746_EnsureUrlsAre1024Chars.cs +++ b/backend/src/Web/Features/Contents/Data/Migrations/20250402024746_EnsureUrlsAre1024Chars.cs @@ -116,7 +116,18 @@ namespace Hutopy.Web.Features.Contents.Data.Migrations oldClrType: typeof(string), oldType: "character varying(2000)", oldMaxLength: 2000); - + + migrationBuilder.AlterColumn( + 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( 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( + 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( name: "MainImageUrl", schema: "Content", diff --git a/backend/src/Web/Features/Contents/Data/Migrations/ContentDbContextModelSnapshot.cs b/backend/src/Web/Features/Contents/Data/Migrations/ContentDbContextModelSnapshot.cs index 65e2081..49d73a7 100644 --- a/backend/src/Web/Features/Contents/Data/Migrations/ContentDbContextModelSnapshot.cs +++ b/backend/src/Web/Features/Contents/Data/Migrations/ContentDbContextModelSnapshot.cs @@ -300,8 +300,8 @@ namespace Hutopy.Web.Features.Contents.Data.Migrations b1.Property("VideoUrlMain") .IsRequired() - .HasMaxLength(2000) - .HasColumnType("character varying(2000)"); + .HasMaxLength(1024) + .HasColumnType("character varying(1024)"); b1.HasKey("CreatorId"); diff --git a/backend/src/Web/Features/Memberships/Data/Migrations/MembershipDbContextModelSnapshot.cs b/backend/src/Web/Features/Memberships/Data/Migrations/MembershipDbContextModelSnapshot.cs index 53bf08d..2b708ef 100644 --- a/backend/src/Web/Features/Memberships/Data/Migrations/MembershipDbContextModelSnapshot.cs +++ b/backend/src/Web/Features/Memberships/Data/Migrations/MembershipDbContextModelSnapshot.cs @@ -18,7 +18,7 @@ namespace Hutopy.Web.Features.Memberships.Data.Migrations #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("Membership") - .HasAnnotation("ProductVersion", "8.0.14") + .HasAnnotation("ProductVersion", "9.0.3") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); diff --git a/backend/src/Web/Features/Messages/Data/Migrations/MessagingDbContextModelSnapshot.cs b/backend/src/Web/Features/Messages/Data/Migrations/MessagingDbContextModelSnapshot.cs index 14c77a2..02fc153 100644 --- a/backend/src/Web/Features/Messages/Data/Migrations/MessagingDbContextModelSnapshot.cs +++ b/backend/src/Web/Features/Messages/Data/Migrations/MessagingDbContextModelSnapshot.cs @@ -18,7 +18,7 @@ namespace Hutopy.Web.Features.Messages.Migrations #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("Messaging") - .HasAnnotation("ProductVersion", "8.0.10") + .HasAnnotation("ProductVersion", "9.0.3") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); diff --git a/backend/src/Web/Web.csproj b/backend/src/Web/Web.csproj index ece1c2f..3d906ce 100644 --- a/backend/src/Web/Web.csproj +++ b/backend/src/Web/Web.csproj @@ -12,16 +12,16 @@ - - - - - - - - + + + + + + + + - + runtime; build; native; contentfiles; analyzers; buildtransitive all