|  |  |  | @ -7,6 +7,37 @@ namespace IdentityServerHost.Migrations | 
			
		
	
		
			
				
					|  |  |  |  |     { | 
			
		
	
		
			
				
					|  |  |  |  |         protected override void Up(MigrationBuilder migrationBuilder) | 
			
		
	
		
			
				
					|  |  |  |  |         { | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "AbpAuditLogs", | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: table => new | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
		
			
				
					|  |  |  |  |                     Id = table.Column<Guid>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     ExtraProperties = table.Column<string>(nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     ConcurrencyStamp = table.Column<string>(nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     ApplicationName = table.Column<string>(maxLength: 96, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     UserId = table.Column<Guid>(nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     UserName = table.Column<string>(maxLength: 256, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     TenantId = table.Column<Guid>(nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     ImpersonatorUserId = table.Column<Guid>(nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     ImpersonatorTenantId = table.Column<Guid>(nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     ExecutionTime = table.Column<DateTime>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     ExecutionDuration = table.Column<int>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     ClientIpAddress = table.Column<string>(maxLength: 64, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     ClientName = table.Column<string>(maxLength: 128, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     ClientId = table.Column<string>(maxLength: 64, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     CorrelationId = table.Column<string>(maxLength: 64, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     BrowserInfo = table.Column<string>(maxLength: 512, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     HttpMethod = table.Column<string>(maxLength: 16, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     Url = table.Column<string>(maxLength: 256, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     Exceptions = table.Column<string>(maxLength: 4000, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     Comments = table.Column<string>(maxLength: 256, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     HttpStatusCode = table.Column<int>(nullable: true) | 
			
		
	
		
			
				
					|  |  |  |  |                 }, | 
			
		
	
		
			
				
					|  |  |  |  |                 constraints: table => | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
		
			
				
					|  |  |  |  |                     table.PrimaryKey("PK_AbpAuditLogs", x => x.Id); | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "AbpClaimTypes", | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: table => new | 
			
		
	
	
		
			
				
					|  |  |  | @ -27,6 +58,21 @@ namespace IdentityServerHost.Migrations | 
			
		
	
		
			
				
					|  |  |  |  |                     table.PrimaryKey("PK_AbpClaimTypes", x => x.Id); | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "AbpPermissionGrants", | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: table => new | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
		
			
				
					|  |  |  |  |                     Id = table.Column<Guid>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     TenantId = table.Column<Guid>(nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     Name = table.Column<string>(maxLength: 128, nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     ProviderName = table.Column<string>(maxLength: 64, nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     ProviderKey = table.Column<string>(maxLength: 64, nullable: false) | 
			
		
	
		
			
				
					|  |  |  |  |                 }, | 
			
		
	
		
			
				
					|  |  |  |  |                 constraints: table => | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
		
			
				
					|  |  |  |  |                     table.PrimaryKey("PK_AbpPermissionGrants", x => x.Id); | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "AbpRoles", | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: table => new | 
			
		
	
	
		
			
				
					|  |  |  | @ -46,6 +92,21 @@ namespace IdentityServerHost.Migrations | 
			
		
	
		
			
				
					|  |  |  |  |                     table.PrimaryKey("PK_AbpRoles", x => x.Id); | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "AbpSettings", | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: table => new | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
		
			
				
					|  |  |  |  |                     Id = table.Column<Guid>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     Name = table.Column<string>(maxLength: 128, nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     Value = table.Column<string>(maxLength: 2048, nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     ProviderName = table.Column<string>(maxLength: 64, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     ProviderKey = table.Column<string>(maxLength: 64, nullable: true) | 
			
		
	
		
			
				
					|  |  |  |  |                 }, | 
			
		
	
		
			
				
					|  |  |  |  |                 constraints: table => | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
		
			
				
					|  |  |  |  |                     table.PrimaryKey("PK_AbpSettings", x => x.Id); | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "AbpUsers", | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: table => new | 
			
		
	
	
		
			
				
					|  |  |  | @ -109,8 +170,8 @@ namespace IdentityServerHost.Migrations | 
			
		
	
		
			
				
					|  |  |  |  |                     ClientId = table.Column<string>(maxLength: 200, nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     ClientName = table.Column<string>(maxLength: 200, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     Description = table.Column<string>(maxLength: 1000, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     ClientUri = table.Column<string>(maxLength: 2000, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     LogoUri = table.Column<string>(maxLength: 2000, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     ClientUri = table.Column<string>(maxLength: 300, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     LogoUri = table.Column<string>(maxLength: 300, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     Enabled = table.Column<bool>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     ProtocolType = table.Column<string>(maxLength: 200, nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     RequireClientSecret = table.Column<bool>(nullable: false), | 
			
		
	
	
		
			
				
					|  |  |  | @ -120,9 +181,9 @@ namespace IdentityServerHost.Migrations | 
			
		
	
		
			
				
					|  |  |  |  |                     RequirePkce = table.Column<bool>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     AllowPlainTextPkce = table.Column<bool>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     AllowAccessTokensViaBrowser = table.Column<bool>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     FrontChannelLogoutUri = table.Column<string>(maxLength: 2000, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     FrontChannelLogoutUri = table.Column<string>(maxLength: 300, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     FrontChannelLogoutSessionRequired = table.Column<bool>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     BackChannelLogoutUri = table.Column<string>(maxLength: 2000, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     BackChannelLogoutUri = table.Column<string>(maxLength: 300, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     BackChannelLogoutSessionRequired = table.Column<bool>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     AllowOfflineAccess = table.Column<bool>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     IdentityTokenLifetime = table.Column<int>(nullable: false), | 
			
		
	
	
		
			
				
					|  |  |  | @ -186,6 +247,55 @@ namespace IdentityServerHost.Migrations | 
			
		
	
		
			
				
					|  |  |  |  |                     table.PrimaryKey("PK_IdentityServerPersistedGrants", x => x.Key); | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "AbpAuditLogActions", | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: table => new | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
		
			
				
					|  |  |  |  |                     Id = table.Column<Guid>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     TenantId = table.Column<Guid>(nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     AuditLogId = table.Column<Guid>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     ServiceName = table.Column<string>(maxLength: 256, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     MethodName = table.Column<string>(maxLength: 128, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     Parameters = table.Column<string>(maxLength: 2000, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     ExecutionTime = table.Column<DateTime>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     ExecutionDuration = table.Column<int>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     ExtraProperties = table.Column<string>(nullable: true) | 
			
		
	
		
			
				
					|  |  |  |  |                 }, | 
			
		
	
		
			
				
					|  |  |  |  |                 constraints: table => | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
		
			
				
					|  |  |  |  |                     table.PrimaryKey("PK_AbpAuditLogActions", x => x.Id); | 
			
		
	
		
			
				
					|  |  |  |  |                     table.ForeignKey( | 
			
		
	
		
			
				
					|  |  |  |  |                         name: "FK_AbpAuditLogActions_AbpAuditLogs_AuditLogId", | 
			
		
	
		
			
				
					|  |  |  |  |                         column: x => x.AuditLogId, | 
			
		
	
		
			
				
					|  |  |  |  |                         principalTable: "AbpAuditLogs", | 
			
		
	
		
			
				
					|  |  |  |  |                         principalColumn: "Id", | 
			
		
	
		
			
				
					|  |  |  |  |                         onDelete: ReferentialAction.Cascade); | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "AbpEntityChanges", | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: table => new | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
		
			
				
					|  |  |  |  |                     Id = table.Column<Guid>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     AuditLogId = table.Column<Guid>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     TenantId = table.Column<Guid>(nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     ChangeTime = table.Column<DateTime>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     ChangeType = table.Column<byte>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     EntityId = table.Column<string>(maxLength: 128, nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     EntityTypeFullName = table.Column<string>(maxLength: 128, nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     ExtraProperties = table.Column<string>(nullable: true) | 
			
		
	
		
			
				
					|  |  |  |  |                 }, | 
			
		
	
		
			
				
					|  |  |  |  |                 constraints: table => | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
		
			
				
					|  |  |  |  |                     table.PrimaryKey("PK_AbpEntityChanges", x => x.Id); | 
			
		
	
		
			
				
					|  |  |  |  |                     table.ForeignKey( | 
			
		
	
		
			
				
					|  |  |  |  |                         name: "FK_AbpEntityChanges_AbpAuditLogs_AuditLogId", | 
			
		
	
		
			
				
					|  |  |  |  |                         column: x => x.AuditLogId, | 
			
		
	
		
			
				
					|  |  |  |  |                         principalTable: "AbpAuditLogs", | 
			
		
	
		
			
				
					|  |  |  |  |                         principalColumn: "Id", | 
			
		
	
		
			
				
					|  |  |  |  |                         onDelete: ReferentialAction.Cascade); | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "AbpRoleClaims", | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: table => new | 
			
		
	
	
		
			
				
					|  |  |  | @ -361,14 +471,13 @@ namespace IdentityServerHost.Migrations | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "IdentityServerClientClaims", | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: table => new | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
		
			
				
					|  |  |  |  |                     Id = table.Column<Guid>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     ClientId = table.Column<Guid>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     Type = table.Column<string>(maxLength: 250, nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     Value = table.Column<string>(maxLength: 250, nullable: false) | 
			
		
	
		
			
				
					|  |  |  |  |                 }, | 
			
		
	
		
			
				
					|  |  |  |  |                 constraints: table => | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
		
			
				
					|  |  |  |  |                     table.PrimaryKey("PK_IdentityServerClientClaims", x => x.Id); | 
			
		
	
		
			
				
					|  |  |  |  |                     table.PrimaryKey("PK_IdentityServerClientClaims", x => new { x.ClientId, x.Type, x.Value }); | 
			
		
	
		
			
				
					|  |  |  |  |                     table.ForeignKey( | 
			
		
	
		
			
				
					|  |  |  |  |                         name: "FK_IdentityServerClientClaims_IdentityServerClients_ClientId", | 
			
		
	
		
			
				
					|  |  |  |  |                         column: x => x.ClientId, | 
			
		
	
	
		
			
				
					|  |  |  | @ -436,7 +545,7 @@ namespace IdentityServerHost.Migrations | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: table => new | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
		
			
				
					|  |  |  |  |                     ClientId = table.Column<Guid>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     PostLogoutRedirectUri = table.Column<string>(maxLength: 2000, nullable: false) | 
			
		
	
		
			
				
					|  |  |  |  |                     PostLogoutRedirectUri = table.Column<string>(maxLength: 200, nullable: false) | 
			
		
	
		
			
				
					|  |  |  |  |                 }, | 
			
		
	
		
			
				
					|  |  |  |  |                 constraints: table => | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
	
		
			
				
					|  |  |  | @ -454,8 +563,8 @@ namespace IdentityServerHost.Migrations | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: table => new | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
		
			
				
					|  |  |  |  |                     ClientId = table.Column<Guid>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     Key = table.Column<string>(maxLength: 250, nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     Value = table.Column<string>(maxLength: 2000, nullable: false) | 
			
		
	
		
			
				
					|  |  |  |  |                     Key = table.Column<string>(maxLength: 64, nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     Value = table.Column<string>(maxLength: 128, nullable: false) | 
			
		
	
		
			
				
					|  |  |  |  |                 }, | 
			
		
	
		
			
				
					|  |  |  |  |                 constraints: table => | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
	
		
			
				
					|  |  |  | @ -473,7 +582,7 @@ namespace IdentityServerHost.Migrations | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: table => new | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
		
			
				
					|  |  |  |  |                     ClientId = table.Column<Guid>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     RedirectUri = table.Column<string>(maxLength: 2000, nullable: false) | 
			
		
	
		
			
				
					|  |  |  |  |                     RedirectUri = table.Column<string>(maxLength: 200, nullable: false) | 
			
		
	
		
			
				
					|  |  |  |  |                 }, | 
			
		
	
		
			
				
					|  |  |  |  |                 constraints: table => | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
	
		
			
				
					|  |  |  | @ -543,6 +652,29 @@ namespace IdentityServerHost.Migrations | 
			
		
	
		
			
				
					|  |  |  |  |                         onDelete: ReferentialAction.Cascade); | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "AbpEntityPropertyChanges", | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: table => new | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
		
			
				
					|  |  |  |  |                     Id = table.Column<Guid>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     TenantId = table.Column<Guid>(nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     EntityChangeId = table.Column<Guid>(nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     NewValue = table.Column<string>(maxLength: 512, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     OriginalValue = table.Column<string>(maxLength: 512, nullable: true), | 
			
		
	
		
			
				
					|  |  |  |  |                     PropertyName = table.Column<string>(maxLength: 128, nullable: false), | 
			
		
	
		
			
				
					|  |  |  |  |                     PropertyTypeFullName = table.Column<string>(maxLength: 64, nullable: false) | 
			
		
	
		
			
				
					|  |  |  |  |                 }, | 
			
		
	
		
			
				
					|  |  |  |  |                 constraints: table => | 
			
		
	
		
			
				
					|  |  |  |  |                 { | 
			
		
	
		
			
				
					|  |  |  |  |                     table.PrimaryKey("PK_AbpEntityPropertyChanges", x => x.Id); | 
			
		
	
		
			
				
					|  |  |  |  |                     table.ForeignKey( | 
			
		
	
		
			
				
					|  |  |  |  |                         name: "FK_AbpEntityPropertyChanges_AbpEntityChanges_EntityChangeId", | 
			
		
	
		
			
				
					|  |  |  |  |                         column: x => x.EntityChangeId, | 
			
		
	
		
			
				
					|  |  |  |  |                         principalTable: "AbpEntityChanges", | 
			
		
	
		
			
				
					|  |  |  |  |                         principalColumn: "Id", | 
			
		
	
		
			
				
					|  |  |  |  |                         onDelete: ReferentialAction.Cascade); | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "IdentityServerApiScopeClaims", | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: table => new | 
			
		
	
	
		
			
				
					|  |  |  | @ -562,6 +694,46 @@ namespace IdentityServerHost.Migrations | 
			
		
	
		
			
				
					|  |  |  |  |                         onDelete: ReferentialAction.Cascade); | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateIndex( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "IX_AbpAuditLogActions_AuditLogId", | 
			
		
	
		
			
				
					|  |  |  |  |                 table: "AbpAuditLogActions", | 
			
		
	
		
			
				
					|  |  |  |  |                 column: "AuditLogId"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateIndex( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "IX_AbpAuditLogActions_TenantId_ServiceName_MethodName_ExecutionTime", | 
			
		
	
		
			
				
					|  |  |  |  |                 table: "AbpAuditLogActions", | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: new[] { "TenantId", "ServiceName", "MethodName", "ExecutionTime" }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateIndex( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "IX_AbpAuditLogs_TenantId_ExecutionTime", | 
			
		
	
		
			
				
					|  |  |  |  |                 table: "AbpAuditLogs", | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: new[] { "TenantId", "ExecutionTime" }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateIndex( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "IX_AbpAuditLogs_TenantId_UserId_ExecutionTime", | 
			
		
	
		
			
				
					|  |  |  |  |                 table: "AbpAuditLogs", | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: new[] { "TenantId", "UserId", "ExecutionTime" }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateIndex( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "IX_AbpEntityChanges_AuditLogId", | 
			
		
	
		
			
				
					|  |  |  |  |                 table: "AbpEntityChanges", | 
			
		
	
		
			
				
					|  |  |  |  |                 column: "AuditLogId"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateIndex( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "IX_AbpEntityChanges_TenantId_EntityTypeFullName_EntityId", | 
			
		
	
		
			
				
					|  |  |  |  |                 table: "AbpEntityChanges", | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: new[] { "TenantId", "EntityTypeFullName", "EntityId" }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateIndex( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "IX_AbpEntityPropertyChanges_EntityChangeId", | 
			
		
	
		
			
				
					|  |  |  |  |                 table: "AbpEntityPropertyChanges", | 
			
		
	
		
			
				
					|  |  |  |  |                 column: "EntityChangeId"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateIndex( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "IX_AbpPermissionGrants_Name_ProviderName_ProviderKey", | 
			
		
	
		
			
				
					|  |  |  |  |                 table: "AbpPermissionGrants", | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: new[] { "Name", "ProviderName", "ProviderKey" }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateIndex( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "IX_AbpRoleClaims_RoleId", | 
			
		
	
		
			
				
					|  |  |  |  |                 table: "AbpRoleClaims", | 
			
		
	
	
		
			
				
					|  |  |  | @ -572,6 +744,11 @@ namespace IdentityServerHost.Migrations | 
			
		
	
		
			
				
					|  |  |  |  |                 table: "AbpRoles", | 
			
		
	
		
			
				
					|  |  |  |  |                 column: "NormalizedName"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateIndex( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "IX_AbpSettings_Name_ProviderName_ProviderKey", | 
			
		
	
		
			
				
					|  |  |  |  |                 table: "AbpSettings", | 
			
		
	
		
			
				
					|  |  |  |  |                 columns: new[] { "Name", "ProviderName", "ProviderKey" }); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateIndex( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "IX_AbpUserClaims_UserId", | 
			
		
	
		
			
				
					|  |  |  |  |                 table: "AbpUserClaims", | 
			
		
	
	
		
			
				
					|  |  |  | @ -607,11 +784,6 @@ namespace IdentityServerHost.Migrations | 
			
		
	
		
			
				
					|  |  |  |  |                 table: "AbpUsers", | 
			
		
	
		
			
				
					|  |  |  |  |                 column: "UserName"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateIndex( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "IX_IdentityServerClientClaims_ClientId", | 
			
		
	
		
			
				
					|  |  |  |  |                 table: "IdentityServerClientClaims", | 
			
		
	
		
			
				
					|  |  |  |  |                 column: "ClientId"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.CreateIndex( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "IX_IdentityServerClients_ClientId", | 
			
		
	
		
			
				
					|  |  |  |  |                 table: "IdentityServerClients", | 
			
		
	
	
		
			
				
					|  |  |  | @ -626,12 +798,24 @@ namespace IdentityServerHost.Migrations | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         protected override void Down(MigrationBuilder migrationBuilder) | 
			
		
	
		
			
				
					|  |  |  |  |         { | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.DropTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "AbpAuditLogActions"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.DropTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "AbpClaimTypes"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.DropTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "AbpEntityPropertyChanges"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.DropTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "AbpPermissionGrants"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.DropTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "AbpRoleClaims"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.DropTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "AbpSettings"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.DropTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "AbpUserClaims"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -686,6 +870,9 @@ namespace IdentityServerHost.Migrations | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.DropTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "IdentityServerPersistedGrants"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.DropTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "AbpEntityChanges"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.DropTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "AbpRoles"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -701,6 +888,9 @@ namespace IdentityServerHost.Migrations | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.DropTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "IdentityServerIdentityResources"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.DropTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "AbpAuditLogs"); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             migrationBuilder.DropTable( | 
			
		
	
		
			
				
					|  |  |  |  |                 name: "IdentityServerApiResources"); | 
			
		
	
		
			
				
					|  |  |  |  |         } |