using System; using Microsoft.EntityFrameworkCore.Migrations; namespace AuthServer.Host.Migrations { public partial class init : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "IdentityServerApiResources", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), DisplayName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), Enabled = table.Column(type: "bit", nullable: false), AllowedAccessTokenSigningAlgorithms = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), ShowInDiscoveryDocument = table.Column(type: "bit", nullable: false), ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), DeleterId = table.Column(type: "uniqueidentifier", nullable: true), DeletionTime = table.Column(type: "datetime2", nullable: true) }, constraints: table => { table.PrimaryKey("PK_IdentityServerApiResources", x => x.Id); }); migrationBuilder.CreateTable( name: "IdentityServerApiScopes", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), Enabled = table.Column(type: "bit", nullable: false), Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), DisplayName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), Required = table.Column(type: "bit", nullable: false), Emphasize = table.Column(type: "bit", nullable: false), ShowInDiscoveryDocument = table.Column(type: "bit", nullable: false), ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), DeleterId = table.Column(type: "uniqueidentifier", nullable: true), DeletionTime = table.Column(type: "datetime2", nullable: true) }, constraints: table => { table.PrimaryKey("PK_IdentityServerApiScopes", x => x.Id); }); migrationBuilder.CreateTable( name: "IdentityServerClients", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), ClientId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), ClientName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), ClientUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), LogoUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), Enabled = table.Column(type: "bit", nullable: false), ProtocolType = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), RequireClientSecret = table.Column(type: "bit", nullable: false), RequireConsent = table.Column(type: "bit", nullable: false), AllowRememberConsent = table.Column(type: "bit", nullable: false), AlwaysIncludeUserClaimsInIdToken = table.Column(type: "bit", nullable: false), RequirePkce = table.Column(type: "bit", nullable: false), AllowPlainTextPkce = table.Column(type: "bit", nullable: false), RequireRequestObject = table.Column(type: "bit", nullable: false), AllowAccessTokensViaBrowser = table.Column(type: "bit", nullable: false), FrontChannelLogoutUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), FrontChannelLogoutSessionRequired = table.Column(type: "bit", nullable: false), BackChannelLogoutUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), BackChannelLogoutSessionRequired = table.Column(type: "bit", nullable: false), AllowOfflineAccess = table.Column(type: "bit", nullable: false), IdentityTokenLifetime = table.Column(type: "int", nullable: false), AllowedIdentityTokenSigningAlgorithms = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), AccessTokenLifetime = table.Column(type: "int", nullable: false), AuthorizationCodeLifetime = table.Column(type: "int", nullable: false), ConsentLifetime = table.Column(type: "int", nullable: true), AbsoluteRefreshTokenLifetime = table.Column(type: "int", nullable: false), SlidingRefreshTokenLifetime = table.Column(type: "int", nullable: false), RefreshTokenUsage = table.Column(type: "int", nullable: false), UpdateAccessTokenClaimsOnRefresh = table.Column(type: "bit", nullable: false), RefreshTokenExpiration = table.Column(type: "int", nullable: false), AccessTokenType = table.Column(type: "int", nullable: false), EnableLocalLogin = table.Column(type: "bit", nullable: false), IncludeJwtId = table.Column(type: "bit", nullable: false), AlwaysSendClientClaims = table.Column(type: "bit", nullable: false), ClientClaimsPrefix = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), PairWiseSubjectSalt = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), UserSsoLifetime = table.Column(type: "int", nullable: true), UserCodeType = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), DeviceCodeLifetime = table.Column(type: "int", nullable: false), ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), DeleterId = table.Column(type: "uniqueidentifier", nullable: true), DeletionTime = table.Column(type: "datetime2", nullable: true) }, constraints: table => { table.PrimaryKey("PK_IdentityServerClients", x => x.Id); }); migrationBuilder.CreateTable( name: "IdentityServerDeviceFlowCodes", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), DeviceCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), UserCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), SubjectId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), SessionId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), ClientId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), Description = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), Expiration = table.Column(type: "datetime2", nullable: false), Data = table.Column(type: "nvarchar(max)", maxLength: 50000, nullable: false), ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true) }, constraints: table => { table.PrimaryKey("PK_IdentityServerDeviceFlowCodes", x => x.Id); }); migrationBuilder.CreateTable( name: "IdentityServerIdentityResources", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), DisplayName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), Enabled = table.Column(type: "bit", nullable: false), Required = table.Column(type: "bit", nullable: false), Emphasize = table.Column(type: "bit", nullable: false), ShowInDiscoveryDocument = table.Column(type: "bit", nullable: false), ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), DeleterId = table.Column(type: "uniqueidentifier", nullable: true), DeletionTime = table.Column(type: "datetime2", nullable: true) }, constraints: table => { table.PrimaryKey("PK_IdentityServerIdentityResources", x => x.Id); }); migrationBuilder.CreateTable( name: "IdentityServerPersistedGrants", columns: table => new { Key = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), SubjectId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), SessionId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), ClientId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), Description = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), Expiration = table.Column(type: "datetime2", nullable: true), ConsumedTime = table.Column(type: "datetime2", nullable: true), Data = table.Column(type: "nvarchar(max)", maxLength: 50000, nullable: false), Id = table.Column(type: "uniqueidentifier", nullable: false), ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) }, constraints: table => { table.PrimaryKey("PK_IdentityServerPersistedGrants", x => x.Key); }); migrationBuilder.CreateTable( name: "IdentityServerApiResourceClaims", columns: table => new { Type = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), ApiResourceId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { table.PrimaryKey("PK_IdentityServerApiResourceClaims", x => new { x.ApiResourceId, x.Type }); table.ForeignKey( name: "FK_IdentityServerApiResourceClaims_IdentityServerApiResources_ApiResourceId", column: x => x.ApiResourceId, principalTable: "IdentityServerApiResources", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( name: "IdentityServerApiResourceProperties", columns: table => new { ApiResourceId = table.Column(type: "uniqueidentifier", nullable: false), Key = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), Value = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) }, constraints: table => { table.PrimaryKey("PK_IdentityServerApiResourceProperties", x => new { x.ApiResourceId, x.Key, x.Value }); table.ForeignKey( name: "FK_IdentityServerApiResourceProperties_IdentityServerApiResources_ApiResourceId", column: x => x.ApiResourceId, principalTable: "IdentityServerApiResources", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( name: "IdentityServerApiResourceScopes", columns: table => new { ApiResourceId = table.Column(type: "uniqueidentifier", nullable: false), Scope = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false) }, constraints: table => { table.PrimaryKey("PK_IdentityServerApiResourceScopes", x => new { x.ApiResourceId, x.Scope }); table.ForeignKey( name: "FK_IdentityServerApiResourceScopes_IdentityServerApiResources_ApiResourceId", column: x => x.ApiResourceId, principalTable: "IdentityServerApiResources", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( name: "IdentityServerApiResourceSecrets", columns: table => new { Type = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), Value = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: false), ApiResourceId = table.Column(type: "uniqueidentifier", nullable: false), Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), Expiration = table.Column(type: "datetime2", nullable: true) }, constraints: table => { table.PrimaryKey("PK_IdentityServerApiResourceSecrets", x => new { x.ApiResourceId, x.Type, x.Value }); table.ForeignKey( name: "FK_IdentityServerApiResourceSecrets_IdentityServerApiResources_ApiResourceId", column: x => x.ApiResourceId, principalTable: "IdentityServerApiResources", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( name: "IdentityServerApiScopeClaims", columns: table => new { Type = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), ApiScopeId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { table.PrimaryKey("PK_IdentityServerApiScopeClaims", x => new { x.ApiScopeId, x.Type }); table.ForeignKey( name: "FK_IdentityServerApiScopeClaims_IdentityServerApiScopes_ApiScopeId", column: x => x.ApiScopeId, principalTable: "IdentityServerApiScopes", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( name: "IdentityServerApiScopeProperties", columns: table => new { ApiScopeId = table.Column(type: "uniqueidentifier", nullable: false), Key = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), Value = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) }, constraints: table => { table.PrimaryKey("PK_IdentityServerApiScopeProperties", x => new { x.ApiScopeId, x.Key, x.Value }); table.ForeignKey( name: "FK_IdentityServerApiScopeProperties_IdentityServerApiScopes_ApiScopeId", column: x => x.ApiScopeId, principalTable: "IdentityServerApiScopes", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( name: "IdentityServerClientClaims", columns: table => new { ClientId = table.Column(type: "uniqueidentifier", nullable: false), Type = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), Value = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false) }, constraints: table => { table.PrimaryKey("PK_IdentityServerClientClaims", x => new { x.ClientId, x.Type, x.Value }); table.ForeignKey( name: "FK_IdentityServerClientClaims_IdentityServerClients_ClientId", column: x => x.ClientId, principalTable: "IdentityServerClients", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( name: "IdentityServerClientCorsOrigins", columns: table => new { ClientId = table.Column(type: "uniqueidentifier", nullable: false), Origin = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: false) }, constraints: table => { table.PrimaryKey("PK_IdentityServerClientCorsOrigins", x => new { x.ClientId, x.Origin }); table.ForeignKey( name: "FK_IdentityServerClientCorsOrigins_IdentityServerClients_ClientId", column: x => x.ClientId, principalTable: "IdentityServerClients", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( name: "IdentityServerClientGrantTypes", columns: table => new { ClientId = table.Column(type: "uniqueidentifier", nullable: false), GrantType = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false) }, constraints: table => { table.PrimaryKey("PK_IdentityServerClientGrantTypes", x => new { x.ClientId, x.GrantType }); table.ForeignKey( name: "FK_IdentityServerClientGrantTypes_IdentityServerClients_ClientId", column: x => x.ClientId, principalTable: "IdentityServerClients", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( name: "IdentityServerClientIdPRestrictions", columns: table => new { ClientId = table.Column(type: "uniqueidentifier", nullable: false), Provider = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false) }, constraints: table => { table.PrimaryKey("PK_IdentityServerClientIdPRestrictions", x => new { x.ClientId, x.Provider }); table.ForeignKey( name: "FK_IdentityServerClientIdPRestrictions_IdentityServerClients_ClientId", column: x => x.ClientId, principalTable: "IdentityServerClients", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( name: "IdentityServerClientPostLogoutRedirectUris", columns: table => new { ClientId = table.Column(type: "uniqueidentifier", nullable: false), PostLogoutRedirectUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) }, constraints: table => { table.PrimaryKey("PK_IdentityServerClientPostLogoutRedirectUris", x => new { x.ClientId, x.PostLogoutRedirectUri }); table.ForeignKey( name: "FK_IdentityServerClientPostLogoutRedirectUris_IdentityServerClients_ClientId", column: x => x.ClientId, principalTable: "IdentityServerClients", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( name: "IdentityServerClientProperties", columns: table => new { ClientId = table.Column(type: "uniqueidentifier", nullable: false), Key = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), Value = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) }, constraints: table => { table.PrimaryKey("PK_IdentityServerClientProperties", x => new { x.ClientId, x.Key, x.Value }); table.ForeignKey( name: "FK_IdentityServerClientProperties_IdentityServerClients_ClientId", column: x => x.ClientId, principalTable: "IdentityServerClients", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( name: "IdentityServerClientRedirectUris", columns: table => new { ClientId = table.Column(type: "uniqueidentifier", nullable: false), RedirectUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) }, constraints: table => { table.PrimaryKey("PK_IdentityServerClientRedirectUris", x => new { x.ClientId, x.RedirectUri }); table.ForeignKey( name: "FK_IdentityServerClientRedirectUris_IdentityServerClients_ClientId", column: x => x.ClientId, principalTable: "IdentityServerClients", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( name: "IdentityServerClientScopes", columns: table => new { ClientId = table.Column(type: "uniqueidentifier", nullable: false), Scope = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false) }, constraints: table => { table.PrimaryKey("PK_IdentityServerClientScopes", x => new { x.ClientId, x.Scope }); table.ForeignKey( name: "FK_IdentityServerClientScopes_IdentityServerClients_ClientId", column: x => x.ClientId, principalTable: "IdentityServerClients", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( name: "IdentityServerClientSecrets", columns: table => new { Type = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), Value = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: false), ClientId = table.Column(type: "uniqueidentifier", nullable: false), Description = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), Expiration = table.Column(type: "datetime2", nullable: true) }, constraints: table => { table.PrimaryKey("PK_IdentityServerClientSecrets", x => new { x.ClientId, x.Type, x.Value }); table.ForeignKey( name: "FK_IdentityServerClientSecrets_IdentityServerClients_ClientId", column: x => x.ClientId, principalTable: "IdentityServerClients", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( name: "IdentityServerIdentityResourceClaims", columns: table => new { Type = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), IdentityResourceId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { table.PrimaryKey("PK_IdentityServerIdentityResourceClaims", x => new { x.IdentityResourceId, x.Type }); table.ForeignKey( name: "FK_IdentityServerIdentityResourceClaims_IdentityServerIdentityResources_IdentityResourceId", column: x => x.IdentityResourceId, principalTable: "IdentityServerIdentityResources", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( name: "IdentityServerIdentityResourceProperties", columns: table => new { IdentityResourceId = table.Column(type: "uniqueidentifier", nullable: false), Key = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), Value = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) }, constraints: table => { table.PrimaryKey("PK_IdentityServerIdentityResourceProperties", x => new { x.IdentityResourceId, x.Key, x.Value }); table.ForeignKey( name: "FK_IdentityServerIdentityResourceProperties_IdentityServerIdentityResources_IdentityResourceId", column: x => x.IdentityResourceId, principalTable: "IdentityServerIdentityResources", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateIndex( name: "IX_IdentityServerClients_ClientId", table: "IdentityServerClients", column: "ClientId"); migrationBuilder.CreateIndex( name: "IX_IdentityServerDeviceFlowCodes_DeviceCode", table: "IdentityServerDeviceFlowCodes", column: "DeviceCode", unique: true); migrationBuilder.CreateIndex( name: "IX_IdentityServerDeviceFlowCodes_Expiration", table: "IdentityServerDeviceFlowCodes", column: "Expiration"); migrationBuilder.CreateIndex( name: "IX_IdentityServerDeviceFlowCodes_UserCode", table: "IdentityServerDeviceFlowCodes", column: "UserCode"); migrationBuilder.CreateIndex( name: "IX_IdentityServerPersistedGrants_Expiration", table: "IdentityServerPersistedGrants", column: "Expiration"); migrationBuilder.CreateIndex( name: "IX_IdentityServerPersistedGrants_SubjectId_ClientId_Type", table: "IdentityServerPersistedGrants", columns: new[] { "SubjectId", "ClientId", "Type" }); migrationBuilder.CreateIndex( name: "IX_IdentityServerPersistedGrants_SubjectId_SessionId_Type", table: "IdentityServerPersistedGrants", columns: new[] { "SubjectId", "SessionId", "Type" }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "IdentityServerApiResourceClaims"); migrationBuilder.DropTable( name: "IdentityServerApiResourceProperties"); migrationBuilder.DropTable( name: "IdentityServerApiResourceScopes"); migrationBuilder.DropTable( name: "IdentityServerApiResourceSecrets"); migrationBuilder.DropTable( name: "IdentityServerApiScopeClaims"); migrationBuilder.DropTable( name: "IdentityServerApiScopeProperties"); migrationBuilder.DropTable( name: "IdentityServerClientClaims"); migrationBuilder.DropTable( name: "IdentityServerClientCorsOrigins"); migrationBuilder.DropTable( name: "IdentityServerClientGrantTypes"); migrationBuilder.DropTable( name: "IdentityServerClientIdPRestrictions"); migrationBuilder.DropTable( name: "IdentityServerClientPostLogoutRedirectUris"); migrationBuilder.DropTable( name: "IdentityServerClientProperties"); migrationBuilder.DropTable( name: "IdentityServerClientRedirectUris"); migrationBuilder.DropTable( name: "IdentityServerClientScopes"); migrationBuilder.DropTable( name: "IdentityServerClientSecrets"); migrationBuilder.DropTable( name: "IdentityServerDeviceFlowCodes"); migrationBuilder.DropTable( name: "IdentityServerIdentityResourceClaims"); migrationBuilder.DropTable( name: "IdentityServerIdentityResourceProperties"); migrationBuilder.DropTable( name: "IdentityServerPersistedGrants"); migrationBuilder.DropTable( name: "IdentityServerApiResources"); migrationBuilder.DropTable( name: "IdentityServerApiScopes"); migrationBuilder.DropTable( name: "IdentityServerClients"); migrationBuilder.DropTable( name: "IdentityServerIdentityResources"); } } }