mirror of https://github.com/abpframework/abp.git
9 changed files with 687 additions and 27 deletions
@ -0,0 +1,603 @@ |
|||
// <auto-generated />
|
|||
using Microsoft.EntityFrameworkCore; |
|||
using Microsoft.EntityFrameworkCore.Infrastructure; |
|||
using Microsoft.EntityFrameworkCore.Metadata; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
using Microsoft.EntityFrameworkCore.Storage; |
|||
using Microsoft.EntityFrameworkCore.Storage.Internal; |
|||
using System; |
|||
using Volo.Abp.IdentityServer.EntityFrameworkCore; |
|||
|
|||
namespace Volo.Abp.IdentityServer.EntityFrameworkCore.Migrations |
|||
{ |
|||
[DbContext(typeof(IdentityServerDbContext))] |
|||
[Migration("20180111095012_Removed_Id_From_ClientGrantType")] |
|||
partial class Removed_Id_From_ClientGrantType |
|||
{ |
|||
protected override void BuildTargetModel(ModelBuilder modelBuilder) |
|||
{ |
|||
#pragma warning disable 612, 618
|
|||
modelBuilder |
|||
.HasAnnotation("ProductVersion", "2.0.0-rtm-26452") |
|||
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<string>("Description") |
|||
.HasMaxLength(1000); |
|||
|
|||
b.Property<string>("DisplayName") |
|||
.HasMaxLength(200); |
|||
|
|||
b.Property<bool>("Enabled"); |
|||
|
|||
b.Property<string>("Name") |
|||
.IsRequired() |
|||
.HasMaxLength(200); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("Name") |
|||
.IsUnique(); |
|||
|
|||
b.ToTable("AbpIdsApiResources"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<Guid>("ApiResourceId"); |
|||
|
|||
b.Property<string>("Type") |
|||
.IsRequired() |
|||
.HasMaxLength(200); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("ApiResourceId"); |
|||
|
|||
b.ToTable("AbpIdsApiClaims"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiScope", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<Guid>("ApiResourceId"); |
|||
|
|||
b.Property<string>("Description") |
|||
.HasMaxLength(1000); |
|||
|
|||
b.Property<string>("DisplayName") |
|||
.HasMaxLength(200); |
|||
|
|||
b.Property<bool>("Emphasize"); |
|||
|
|||
b.Property<string>("Name") |
|||
.IsRequired() |
|||
.HasMaxLength(200); |
|||
|
|||
b.Property<bool>("Required"); |
|||
|
|||
b.Property<bool>("ShowInDiscoveryDocument"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("ApiResourceId"); |
|||
|
|||
b.HasIndex("Name") |
|||
.IsUnique(); |
|||
|
|||
b.ToTable("AbpIdsApiScopes"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiScopeClaim", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<Guid>("ApiScopeId"); |
|||
|
|||
b.Property<string>("Type") |
|||
.IsRequired() |
|||
.HasMaxLength(200); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("ApiScopeId"); |
|||
|
|||
b.ToTable("AbpIdsApiScopeClaims"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiSecret", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<Guid>("ApiResourceId"); |
|||
|
|||
b.Property<string>("Description") |
|||
.HasMaxLength(1000); |
|||
|
|||
b.Property<DateTime?>("Expiration"); |
|||
|
|||
b.Property<string>("Type") |
|||
.HasMaxLength(250); |
|||
|
|||
b.Property<string>("Value") |
|||
.HasMaxLength(2000); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("ApiResourceId"); |
|||
|
|||
b.ToTable("AbpIdsApiSecrets"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<int>("AbsoluteRefreshTokenLifetime"); |
|||
|
|||
b.Property<int>("AccessTokenLifetime"); |
|||
|
|||
b.Property<int>("AccessTokenType"); |
|||
|
|||
b.Property<bool>("AllowAccessTokensViaBrowser"); |
|||
|
|||
b.Property<bool>("AllowOfflineAccess"); |
|||
|
|||
b.Property<bool>("AllowPlainTextPkce"); |
|||
|
|||
b.Property<bool>("AllowRememberConsent"); |
|||
|
|||
b.Property<bool>("AlwaysIncludeUserClaimsInIdToken"); |
|||
|
|||
b.Property<bool>("AlwaysSendClientClaims"); |
|||
|
|||
b.Property<int>("AuthorizationCodeLifetime"); |
|||
|
|||
b.Property<bool>("BackChannelLogoutSessionRequired"); |
|||
|
|||
b.Property<string>("BackChannelLogoutUri") |
|||
.HasMaxLength(2000); |
|||
|
|||
b.Property<string>("ClientClaimsPrefix") |
|||
.HasMaxLength(200); |
|||
|
|||
b.Property<string>("ClientId") |
|||
.IsRequired() |
|||
.HasMaxLength(200); |
|||
|
|||
b.Property<string>("ClientName") |
|||
.HasMaxLength(200); |
|||
|
|||
b.Property<string>("ClientUri") |
|||
.HasMaxLength(2000); |
|||
|
|||
b.Property<int?>("ConsentLifetime"); |
|||
|
|||
b.Property<string>("Description") |
|||
.HasMaxLength(1000); |
|||
|
|||
b.Property<bool>("EnableLocalLogin"); |
|||
|
|||
b.Property<bool>("Enabled"); |
|||
|
|||
b.Property<bool>("FrontChannelLogoutSessionRequired"); |
|||
|
|||
b.Property<string>("FrontChannelLogoutUri") |
|||
.HasMaxLength(2000); |
|||
|
|||
b.Property<int>("IdentityTokenLifetime"); |
|||
|
|||
b.Property<bool>("IncludeJwtId"); |
|||
|
|||
b.Property<string>("LogoUri") |
|||
.HasMaxLength(2000); |
|||
|
|||
b.Property<string>("PairWiseSubjectSalt") |
|||
.HasMaxLength(200); |
|||
|
|||
b.Property<string>("ProtocolType") |
|||
.IsRequired() |
|||
.HasMaxLength(200); |
|||
|
|||
b.Property<int>("RefreshTokenExpiration"); |
|||
|
|||
b.Property<int>("RefreshTokenUsage"); |
|||
|
|||
b.Property<bool>("RequireClientSecret"); |
|||
|
|||
b.Property<bool>("RequireConsent"); |
|||
|
|||
b.Property<bool>("RequirePkce"); |
|||
|
|||
b.Property<int>("SlidingRefreshTokenLifetime"); |
|||
|
|||
b.Property<bool>("UpdateAccessTokenClaimsOnRefresh"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("ClientId") |
|||
.IsUnique(); |
|||
|
|||
b.ToTable("AbpIdsClients"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<Guid>("ClientId"); |
|||
|
|||
b.Property<string>("Type") |
|||
.IsRequired() |
|||
.HasMaxLength(250); |
|||
|
|||
b.Property<string>("Value") |
|||
.IsRequired() |
|||
.HasMaxLength(250); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("ClientId"); |
|||
|
|||
b.ToTable("AbpIdsClientClaims"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<Guid>("ClientId"); |
|||
|
|||
b.Property<string>("Origin") |
|||
.IsRequired() |
|||
.HasMaxLength(150); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("ClientId"); |
|||
|
|||
b.ToTable("AbpIdsClientCorsOrigins"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => |
|||
{ |
|||
b.Property<Guid>("ClientId"); |
|||
|
|||
b.Property<string>("GrantType") |
|||
.HasMaxLength(250); |
|||
|
|||
b.HasKey("ClientId", "GrantType"); |
|||
|
|||
b.ToTable("AbpIdsClientGrantTypes"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<Guid>("ClientId"); |
|||
|
|||
b.Property<string>("Provider") |
|||
.IsRequired() |
|||
.HasMaxLength(200); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("ClientId"); |
|||
|
|||
b.ToTable("AbpIdsClientIdPRestrictions"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<Guid>("ClientId"); |
|||
|
|||
b.Property<string>("PostLogoutRedirectUri") |
|||
.IsRequired() |
|||
.HasMaxLength(2000); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("ClientId"); |
|||
|
|||
b.ToTable("AbpIdsClientPostLogoutRedirectUris"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<Guid>("ClientId"); |
|||
|
|||
b.Property<string>("Key") |
|||
.IsRequired() |
|||
.HasMaxLength(250); |
|||
|
|||
b.Property<string>("Value") |
|||
.IsRequired() |
|||
.HasMaxLength(2000); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("ClientId"); |
|||
|
|||
b.ToTable("AbpIdsClientProperties"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<Guid>("ClientId"); |
|||
|
|||
b.Property<string>("RedirectUri") |
|||
.IsRequired() |
|||
.HasMaxLength(2000); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("ClientId"); |
|||
|
|||
b.ToTable("AbpIdsClientRedirectUris"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<Guid>("ClientId"); |
|||
|
|||
b.Property<string>("Scope") |
|||
.IsRequired() |
|||
.HasMaxLength(200); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("ClientId"); |
|||
|
|||
b.ToTable("AbpIdsClientScopes"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<Guid>("ClientId"); |
|||
|
|||
b.Property<string>("Description") |
|||
.HasMaxLength(2000); |
|||
|
|||
b.Property<DateTime?>("Expiration"); |
|||
|
|||
b.Property<string>("Type") |
|||
.HasMaxLength(250); |
|||
|
|||
b.Property<string>("Value") |
|||
.IsRequired() |
|||
.HasMaxLength(2000); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("ClientId"); |
|||
|
|||
b.ToTable("AbpIdsClientSecrets"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b => |
|||
{ |
|||
b.Property<string>("Key") |
|||
.HasMaxLength(200); |
|||
|
|||
b.Property<string>("ClientId") |
|||
.IsRequired() |
|||
.HasMaxLength(200); |
|||
|
|||
b.Property<DateTime>("CreationTime"); |
|||
|
|||
b.Property<string>("Data") |
|||
.IsRequired(); |
|||
|
|||
b.Property<DateTime?>("Expiration"); |
|||
|
|||
b.Property<Guid>("Id"); |
|||
|
|||
b.Property<string>("SubjectId") |
|||
.HasMaxLength(200); |
|||
|
|||
b.Property<string>("Type") |
|||
.IsRequired() |
|||
.HasMaxLength(50); |
|||
|
|||
b.HasKey("Key"); |
|||
|
|||
b.HasIndex("SubjectId", "ClientId", "Type"); |
|||
|
|||
b.ToTable("AbpIdsPersistedGrants"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityClaim", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<Guid>("IdentityResourceId"); |
|||
|
|||
b.Property<string>("Type") |
|||
.IsRequired() |
|||
.HasMaxLength(200); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("IdentityResourceId"); |
|||
|
|||
b.ToTable("AbpIdsIdentityClaims"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => |
|||
{ |
|||
b.Property<Guid>("Id") |
|||
.ValueGeneratedOnAdd(); |
|||
|
|||
b.Property<string>("Description") |
|||
.HasMaxLength(1000); |
|||
|
|||
b.Property<string>("DisplayName") |
|||
.HasMaxLength(200); |
|||
|
|||
b.Property<bool>("Emphasize"); |
|||
|
|||
b.Property<bool>("Enabled"); |
|||
|
|||
b.Property<string>("Name") |
|||
.IsRequired() |
|||
.HasMaxLength(200); |
|||
|
|||
b.Property<bool>("Required"); |
|||
|
|||
b.Property<bool>("ShowInDiscoveryDocument"); |
|||
|
|||
b.HasKey("Id"); |
|||
|
|||
b.HasIndex("Name") |
|||
.IsUnique(); |
|||
|
|||
b.ToTable("AbpIdsIdentityResources"); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource") |
|||
.WithMany("UserClaims") |
|||
.HasForeignKey("ApiResourceId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiScope", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource") |
|||
.WithMany("Scopes") |
|||
.HasForeignKey("ApiResourceId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiScopeClaim", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiScope") |
|||
.WithMany("UserClaims") |
|||
.HasForeignKey("ApiScopeId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiSecret", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource") |
|||
.WithMany("Secrets") |
|||
.HasForeignKey("ApiResourceId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.IdentityServer.Clients.Client") |
|||
.WithMany("Claims") |
|||
.HasForeignKey("ClientId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.IdentityServer.Clients.Client") |
|||
.WithMany("AllowedCorsOrigins") |
|||
.HasForeignKey("ClientId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.IdentityServer.Clients.Client") |
|||
.WithMany("AllowedGrantTypes") |
|||
.HasForeignKey("ClientId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.IdentityServer.Clients.Client") |
|||
.WithMany("IdentityProviderRestrictions") |
|||
.HasForeignKey("ClientId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.IdentityServer.Clients.Client") |
|||
.WithMany("PostLogoutRedirectUris") |
|||
.HasForeignKey("ClientId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.IdentityServer.Clients.Client") |
|||
.WithMany("Properties") |
|||
.HasForeignKey("ClientId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.IdentityServer.Clients.Client") |
|||
.WithMany("RedirectUris") |
|||
.HasForeignKey("ClientId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.IdentityServer.Clients.Client") |
|||
.WithMany("AllowedScopes") |
|||
.HasForeignKey("ClientId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.IdentityServer.Clients.Client") |
|||
.WithMany("ClientSecrets") |
|||
.HasForeignKey("ClientId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
|
|||
modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityClaim", b => |
|||
{ |
|||
b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource") |
|||
.WithMany("UserClaims") |
|||
.HasForeignKey("IdentityResourceId") |
|||
.OnDelete(DeleteBehavior.Cascade); |
|||
}); |
|||
#pragma warning restore 612, 618
|
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,52 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace Volo.Abp.IdentityServer.EntityFrameworkCore.Migrations |
|||
{ |
|||
public partial class Removed_Id_From_ClientGrantType : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_AbpIdsClientGrantTypes", |
|||
table: "AbpIdsClientGrantTypes"); |
|||
|
|||
migrationBuilder.DropIndex( |
|||
name: "IX_AbpIdsClientGrantTypes_ClientId", |
|||
table: "AbpIdsClientGrantTypes"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Id", |
|||
table: "AbpIdsClientGrantTypes"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_AbpIdsClientGrantTypes", |
|||
table: "AbpIdsClientGrantTypes", |
|||
columns: new[] { "ClientId", "GrantType" }); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_AbpIdsClientGrantTypes", |
|||
table: "AbpIdsClientGrantTypes"); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "Id", |
|||
table: "AbpIdsClientGrantTypes", |
|||
nullable: false, |
|||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_AbpIdsClientGrantTypes", |
|||
table: "AbpIdsClientGrantTypes", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpIdsClientGrantTypes_ClientId", |
|||
table: "AbpIdsClientGrantTypes", |
|||
column: "ClientId"); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue