12 changed files with 1914 additions and 17 deletions
@ -0,0 +1,14 @@ |
|||||
|
namespace LINGYUN.Abp.Identity |
||||
|
{ |
||||
|
public static class ExtensionIdentityUserConsts |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 头像字段
|
||||
|
/// </summary>
|
||||
|
public static string AvatarUrlField { get; set; } = "AvatarUrl"; |
||||
|
/// <summary>
|
||||
|
/// 头像字段最大长度
|
||||
|
/// </summary>
|
||||
|
public static int MaxAvatarUrlLength { get; set; } = 128; |
||||
|
} |
||||
|
} |
||||
File diff suppressed because it is too large
@ -0,0 +1,24 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
namespace AuthServer.Host.Migrations |
||||
|
{ |
||||
|
public partial class AddIdentityUserAvatarUrl : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "AvatarUrl", |
||||
|
table: "AbpUsers", |
||||
|
type: "varchar(128) CHARACTER SET utf8mb4", |
||||
|
maxLength: 128, |
||||
|
nullable: true); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "AvatarUrl", |
||||
|
table: "AbpUsers"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue