Skip to content

Commit

Permalink
Update the HttpApi.Host project
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlcf88 committed Apr 12, 2024
1 parent accc497 commit c44db64
Show file tree
Hide file tree
Showing 3 changed files with 255 additions and 3 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace EasyAbp.FileManagement.Migrations
{
/// <inheritdoc />
public partial class UpgradedToAbp_8_1 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "MimeType",
table: "EasyAbpFileManagementFiles",
type: "nvarchar(128)",
maxLength: 128,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(32)",
oldMaxLength: 32,
oldNullable: true);
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "MimeType",
table: "EasyAbpFileManagementFiles",
type: "nvarchar(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(128)",
oldMaxLength: 128,
oldNullable: true);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
.HasAnnotation("ProductVersion", "7.0.10")
.HasAnnotation("ProductVersion", "8.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 128);

SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
Expand Down Expand Up @@ -99,8 +99,8 @@ protected override void BuildModel(ModelBuilder modelBuilder)
.HasColumnName("LastModifierId");

b.Property<string>("MimeType")
.HasMaxLength(32)
.HasColumnType("nvarchar(32)");
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");

b.Property<Guid?>("OwnerUserId")
.HasColumnType("uniqueidentifier");
Expand Down

0 comments on commit c44db64

Please sign in to comment.