Update EF Core Migration.

pull/1649/head
maliming 6 years ago
parent 64f9956d8d
commit 1c95d53779

@ -11,4 +11,8 @@
<ProjectReference Include="..\DashboardDemo.EntityFrameworkCore\DashboardDemo.EntityFrameworkCore.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.2.6" />
</ItemGroup>
</Project>

@ -1,23 +1,23 @@
// <auto-generated />
using System;
using DashboardDemo.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using DashboardDemo.EntityFrameworkCore;
namespace DashboardDemo.Migrations
{
[DbContext(typeof(DashboardDemoMigrationsDbContext))]
[Migration("20190523122033_Initial")]
[Migration("20190816095643_Initial")]
partial class Initial
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.2.4-servicing-10062")
.HasAnnotation("ProductVersion", "2.2.6-servicing-10079")
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
@ -636,6 +636,8 @@ namespace DashboardDemo.Migrations
.IsRequired()
.HasMaxLength(200);
b.Property<string>("Properties");
b.HasKey("Id");
b.ToTable("IdentityServerApiResources");
@ -776,6 +778,8 @@ namespace DashboardDemo.Migrations
b.Property<string>("Description")
.HasMaxLength(1000);
b.Property<int>("DeviceCodeLifetime");
b.Property<bool>("EnableLocalLogin");
b.Property<bool>("Enabled");
@ -827,6 +831,11 @@ namespace DashboardDemo.Migrations
b.Property<bool>("UpdateAccessTokenClaimsOnRefresh");
b.Property<string>("UserCodeType")
.HasMaxLength(100);
b.Property<int?>("UserSsoLifetime");
b.HasKey("Id");
b.HasIndex("ClientId")
@ -1056,6 +1065,8 @@ namespace DashboardDemo.Migrations
.IsRequired()
.HasMaxLength(200);
b.Property<string>("Properties");
b.Property<bool>("Required");
b.Property<bool>("ShowInDiscoveryDocument");

@ -218,7 +218,8 @@ namespace DashboardDemo.Migrations
Name = table.Column<string>(maxLength: 200, nullable: false),
DisplayName = table.Column<string>(maxLength: 200, nullable: true),
Description = table.Column<string>(maxLength: 1000, nullable: true),
Enabled = table.Column<bool>(nullable: false)
Enabled = table.Column<bool>(nullable: false),
Properties = table.Column<string>(nullable: true)
},
constraints: table =>
{
@ -272,7 +273,10 @@ namespace DashboardDemo.Migrations
IncludeJwtId = table.Column<bool>(nullable: false),
AlwaysSendClientClaims = table.Column<bool>(nullable: false),
ClientClaimsPrefix = table.Column<string>(maxLength: 200, nullable: true),
PairWiseSubjectSalt = table.Column<string>(maxLength: 200, nullable: true)
PairWiseSubjectSalt = table.Column<string>(maxLength: 200, nullable: true),
UserSsoLifetime = table.Column<int>(nullable: true),
UserCodeType = table.Column<string>(maxLength: 100, nullable: true),
DeviceCodeLifetime = table.Column<int>(nullable: false)
},
constraints: table =>
{
@ -299,7 +303,8 @@ namespace DashboardDemo.Migrations
Enabled = table.Column<bool>(nullable: false),
Required = table.Column<bool>(nullable: false),
Emphasize = table.Column<bool>(nullable: false),
ShowInDiscoveryDocument = table.Column<bool>(nullable: false)
ShowInDiscoveryDocument = table.Column<bool>(nullable: false),
Properties = table.Column<string>(nullable: true)
},
constraints: table =>
{

@ -1,10 +1,10 @@
// <auto-generated />
using System;
using DashboardDemo.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using DashboardDemo.EntityFrameworkCore;
namespace DashboardDemo.Migrations
{
@ -15,7 +15,7 @@ namespace DashboardDemo.Migrations
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.2.4-servicing-10062")
.HasAnnotation("ProductVersion", "2.2.6-servicing-10079")
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
@ -634,6 +634,8 @@ namespace DashboardDemo.Migrations
.IsRequired()
.HasMaxLength(200);
b.Property<string>("Properties");
b.HasKey("Id");
b.ToTable("IdentityServerApiResources");
@ -774,6 +776,8 @@ namespace DashboardDemo.Migrations
b.Property<string>("Description")
.HasMaxLength(1000);
b.Property<int>("DeviceCodeLifetime");
b.Property<bool>("EnableLocalLogin");
b.Property<bool>("Enabled");
@ -825,6 +829,11 @@ namespace DashboardDemo.Migrations
b.Property<bool>("UpdateAccessTokenClaimsOnRefresh");
b.Property<string>("UserCodeType")
.HasMaxLength(100);
b.Property<int?>("UserSsoLifetime");
b.HasKey("Id");
b.HasIndex("ClientId")
@ -1054,6 +1063,8 @@ namespace DashboardDemo.Migrations
.IsRequired()
.HasMaxLength(200);
b.Property<string>("Properties");
b.Property<bool>("Required");
b.Property<bool>("ShowInDiscoveryDocument");

@ -19,6 +19,7 @@
<PackageReference Include="Serilog.Sinks.Elasticsearch" Version="6.5.0" />
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="2.2.5" />
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="2.2.5" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.2.6" />
</ItemGroup>
<ItemGroup>

@ -10,14 +10,14 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace AuthServer.Host.Migrations
{
[DbContext(typeof(AuthServerDbContext))]
[Migration("20190408114124_Initial")]
[Migration("20190816095916_Initial")]
partial class Initial
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.2.0-rtm-35687")
.HasAnnotation("ProductVersion", "2.2.6-servicing-10079")
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
@ -524,7 +524,9 @@ namespace AuthServer.Host.Migrations
b.Property<Guid>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("ConcurrencyStamp");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnName("CreationTime");
@ -564,6 +566,8 @@ namespace AuthServer.Host.Migrations
.IsRequired()
.HasMaxLength(200);
b.Property<string>("Properties");
b.HasKey("Id");
b.ToTable("IdentityServerApiResources");
@ -683,7 +687,9 @@ namespace AuthServer.Host.Migrations
b.Property<string>("ClientUri")
.HasMaxLength(300);
b.Property<string>("ConcurrencyStamp");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnName("ConcurrencyStamp");
b.Property<int?>("ConsentLifetime");
@ -702,6 +708,8 @@ namespace AuthServer.Host.Migrations
b.Property<string>("Description")
.HasMaxLength(1000);
b.Property<int>("DeviceCodeLifetime");
b.Property<bool>("EnableLocalLogin");
b.Property<bool>("Enabled");
@ -753,6 +761,11 @@ namespace AuthServer.Host.Migrations
b.Property<bool>("UpdateAccessTokenClaimsOnRefresh");
b.Property<string>("UserCodeType")
.HasMaxLength(100);
b.Property<int?>("UserSsoLifetime");
b.HasKey("Id");
b.HasIndex("ClientId")
@ -938,7 +951,9 @@ namespace AuthServer.Host.Migrations
b.Property<Guid>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("ConcurrencyStamp");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnName("CreationTime");
@ -980,6 +995,8 @@ namespace AuthServer.Host.Migrations
.IsRequired()
.HasMaxLength(200);
b.Property<string>("Properties");
b.Property<bool>("Required");
b.Property<bool>("ShowInDiscoveryDocument");

@ -161,7 +161,8 @@ namespace AuthServer.Host.Migrations
Name = table.Column<string>(maxLength: 200, nullable: false),
DisplayName = table.Column<string>(maxLength: 200, nullable: true),
Description = table.Column<string>(maxLength: 1000, nullable: true),
Enabled = table.Column<bool>(nullable: false)
Enabled = table.Column<bool>(nullable: false),
Properties = table.Column<string>(nullable: true)
},
constraints: table =>
{
@ -215,7 +216,10 @@ namespace AuthServer.Host.Migrations
IncludeJwtId = table.Column<bool>(nullable: false),
AlwaysSendClientClaims = table.Column<bool>(nullable: false),
ClientClaimsPrefix = table.Column<string>(maxLength: 200, nullable: true),
PairWiseSubjectSalt = table.Column<string>(maxLength: 200, nullable: true)
PairWiseSubjectSalt = table.Column<string>(maxLength: 200, nullable: true),
UserSsoLifetime = table.Column<int>(nullable: true),
UserCodeType = table.Column<string>(maxLength: 100, nullable: true),
DeviceCodeLifetime = table.Column<int>(nullable: false)
},
constraints: table =>
{
@ -242,7 +246,8 @@ namespace AuthServer.Host.Migrations
Enabled = table.Column<bool>(nullable: false),
Required = table.Column<bool>(nullable: false),
Emphasize = table.Column<bool>(nullable: false),
ShowInDiscoveryDocument = table.Column<bool>(nullable: false)
ShowInDiscoveryDocument = table.Column<bool>(nullable: false),
Properties = table.Column<string>(nullable: true)
},
constraints: table =>
{

@ -15,7 +15,7 @@ namespace AuthServer.Host.Migrations
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.2.0-rtm-35687")
.HasAnnotation("ProductVersion", "2.2.6-servicing-10079")
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
@ -522,7 +522,9 @@ namespace AuthServer.Host.Migrations
b.Property<Guid>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("ConcurrencyStamp");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnName("CreationTime");
@ -562,6 +564,8 @@ namespace AuthServer.Host.Migrations
.IsRequired()
.HasMaxLength(200);
b.Property<string>("Properties");
b.HasKey("Id");
b.ToTable("IdentityServerApiResources");
@ -681,7 +685,9 @@ namespace AuthServer.Host.Migrations
b.Property<string>("ClientUri")
.HasMaxLength(300);
b.Property<string>("ConcurrencyStamp");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnName("ConcurrencyStamp");
b.Property<int?>("ConsentLifetime");
@ -700,6 +706,8 @@ namespace AuthServer.Host.Migrations
b.Property<string>("Description")
.HasMaxLength(1000);
b.Property<int>("DeviceCodeLifetime");
b.Property<bool>("EnableLocalLogin");
b.Property<bool>("Enabled");
@ -751,6 +759,11 @@ namespace AuthServer.Host.Migrations
b.Property<bool>("UpdateAccessTokenClaimsOnRefresh");
b.Property<string>("UserCodeType")
.HasMaxLength(100);
b.Property<int?>("UserSsoLifetime");
b.HasKey("Id");
b.HasIndex("ClientId")
@ -936,7 +949,9 @@ namespace AuthServer.Host.Migrations
b.Property<Guid>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("ConcurrencyStamp");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnName("CreationTime");
@ -978,6 +993,8 @@ namespace AuthServer.Host.Migrations
.IsRequired()
.HasMaxLength(200);
b.Property<string>("Properties");
b.Property<bool>("Required");
b.Property<bool>("ShowInDiscoveryDocument");

@ -10,14 +10,14 @@ using MyCompanyName.MyProjectName.EntityFrameworkCore;
namespace MyCompanyName.MyProjectName.Migrations
{
[DbContext(typeof(MyProjectNameMigrationsDbContext))]
[Migration("20190523122033_Initial")]
[Migration("20190816092925_Initial")]
partial class Initial
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.2.4-servicing-10062")
.HasAnnotation("ProductVersion", "2.2.6-servicing-10079")
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
@ -636,6 +636,8 @@ namespace MyCompanyName.MyProjectName.Migrations
.IsRequired()
.HasMaxLength(200);
b.Property<string>("Properties");
b.HasKey("Id");
b.ToTable("IdentityServerApiResources");
@ -776,6 +778,8 @@ namespace MyCompanyName.MyProjectName.Migrations
b.Property<string>("Description")
.HasMaxLength(1000);
b.Property<int>("DeviceCodeLifetime");
b.Property<bool>("EnableLocalLogin");
b.Property<bool>("Enabled");
@ -827,6 +831,11 @@ namespace MyCompanyName.MyProjectName.Migrations
b.Property<bool>("UpdateAccessTokenClaimsOnRefresh");
b.Property<string>("UserCodeType")
.HasMaxLength(100);
b.Property<int?>("UserSsoLifetime");
b.HasKey("Id");
b.HasIndex("ClientId")
@ -1056,6 +1065,8 @@ namespace MyCompanyName.MyProjectName.Migrations
.IsRequired()
.HasMaxLength(200);
b.Property<string>("Properties");
b.Property<bool>("Required");
b.Property<bool>("ShowInDiscoveryDocument");

@ -218,7 +218,8 @@ namespace MyCompanyName.MyProjectName.Migrations
Name = table.Column<string>(maxLength: 200, nullable: false),
DisplayName = table.Column<string>(maxLength: 200, nullable: true),
Description = table.Column<string>(maxLength: 1000, nullable: true),
Enabled = table.Column<bool>(nullable: false)
Enabled = table.Column<bool>(nullable: false),
Properties = table.Column<string>(nullable: true)
},
constraints: table =>
{
@ -272,7 +273,10 @@ namespace MyCompanyName.MyProjectName.Migrations
IncludeJwtId = table.Column<bool>(nullable: false),
AlwaysSendClientClaims = table.Column<bool>(nullable: false),
ClientClaimsPrefix = table.Column<string>(maxLength: 200, nullable: true),
PairWiseSubjectSalt = table.Column<string>(maxLength: 200, nullable: true)
PairWiseSubjectSalt = table.Column<string>(maxLength: 200, nullable: true),
UserSsoLifetime = table.Column<int>(nullable: true),
UserCodeType = table.Column<string>(maxLength: 100, nullable: true),
DeviceCodeLifetime = table.Column<int>(nullable: false)
},
constraints: table =>
{
@ -299,7 +303,8 @@ namespace MyCompanyName.MyProjectName.Migrations
Enabled = table.Column<bool>(nullable: false),
Required = table.Column<bool>(nullable: false),
Emphasize = table.Column<bool>(nullable: false),
ShowInDiscoveryDocument = table.Column<bool>(nullable: false)
ShowInDiscoveryDocument = table.Column<bool>(nullable: false),
Properties = table.Column<string>(nullable: true)
},
constraints: table =>
{

@ -15,7 +15,7 @@ namespace MyCompanyName.MyProjectName.Migrations
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.2.4-servicing-10062")
.HasAnnotation("ProductVersion", "2.2.6-servicing-10079")
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
@ -634,6 +634,8 @@ namespace MyCompanyName.MyProjectName.Migrations
.IsRequired()
.HasMaxLength(200);
b.Property<string>("Properties");
b.HasKey("Id");
b.ToTable("IdentityServerApiResources");
@ -774,6 +776,8 @@ namespace MyCompanyName.MyProjectName.Migrations
b.Property<string>("Description")
.HasMaxLength(1000);
b.Property<int>("DeviceCodeLifetime");
b.Property<bool>("EnableLocalLogin");
b.Property<bool>("Enabled");
@ -825,6 +829,11 @@ namespace MyCompanyName.MyProjectName.Migrations
b.Property<bool>("UpdateAccessTokenClaimsOnRefresh");
b.Property<string>("UserCodeType")
.HasMaxLength(100);
b.Property<int?>("UserSsoLifetime");
b.HasKey("Id");
b.HasIndex("ClientId")
@ -1054,6 +1063,8 @@ namespace MyCompanyName.MyProjectName.Migrations
.IsRequired()
.HasMaxLength(200);
b.Property<string>("Properties");
b.Property<bool>("Required");
b.Property<bool>("ShowInDiscoveryDocument");

@ -10,14 +10,14 @@ using MyCompanyName.MyProjectName.EntityFrameworkCore;
namespace MyCompanyName.MyProjectName.Migrations
{
[DbContext(typeof(IdentityServerHostMigrationsDbContext))]
[Migration("20190527125607_Initial")]
[Migration("20190816093449_Initial")]
partial class Initial
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.2.4-servicing-10062")
.HasAnnotation("ProductVersion", "2.2.6-servicing-10079")
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
@ -566,6 +566,8 @@ namespace MyCompanyName.MyProjectName.Migrations
.IsRequired()
.HasMaxLength(200);
b.Property<string>("Properties");
b.HasKey("Id");
b.ToTable("IdentityServerApiResources");
@ -706,6 +708,8 @@ namespace MyCompanyName.MyProjectName.Migrations
b.Property<string>("Description")
.HasMaxLength(1000);
b.Property<int>("DeviceCodeLifetime");
b.Property<bool>("EnableLocalLogin");
b.Property<bool>("Enabled");
@ -757,6 +761,11 @@ namespace MyCompanyName.MyProjectName.Migrations
b.Property<bool>("UpdateAccessTokenClaimsOnRefresh");
b.Property<string>("UserCodeType")
.HasMaxLength(100);
b.Property<int?>("UserSsoLifetime");
b.HasKey("Id");
b.HasIndex("ClientId")
@ -986,6 +995,8 @@ namespace MyCompanyName.MyProjectName.Migrations
.IsRequired()
.HasMaxLength(200);
b.Property<string>("Properties");
b.Property<bool>("Required");
b.Property<bool>("ShowInDiscoveryDocument");

@ -182,7 +182,8 @@ namespace MyCompanyName.MyProjectName.Migrations
Name = table.Column<string>(maxLength: 200, nullable: false),
DisplayName = table.Column<string>(maxLength: 200, nullable: true),
Description = table.Column<string>(maxLength: 1000, nullable: true),
Enabled = table.Column<bool>(nullable: false)
Enabled = table.Column<bool>(nullable: false),
Properties = table.Column<string>(nullable: true)
},
constraints: table =>
{
@ -236,7 +237,10 @@ namespace MyCompanyName.MyProjectName.Migrations
IncludeJwtId = table.Column<bool>(nullable: false),
AlwaysSendClientClaims = table.Column<bool>(nullable: false),
ClientClaimsPrefix = table.Column<string>(maxLength: 200, nullable: true),
PairWiseSubjectSalt = table.Column<string>(maxLength: 200, nullable: true)
PairWiseSubjectSalt = table.Column<string>(maxLength: 200, nullable: true),
UserSsoLifetime = table.Column<int>(nullable: true),
UserCodeType = table.Column<string>(maxLength: 100, nullable: true),
DeviceCodeLifetime = table.Column<int>(nullable: false)
},
constraints: table =>
{
@ -263,7 +267,8 @@ namespace MyCompanyName.MyProjectName.Migrations
Enabled = table.Column<bool>(nullable: false),
Required = table.Column<bool>(nullable: false),
Emphasize = table.Column<bool>(nullable: false),
ShowInDiscoveryDocument = table.Column<bool>(nullable: false)
ShowInDiscoveryDocument = table.Column<bool>(nullable: false),
Properties = table.Column<string>(nullable: true)
},
constraints: table =>
{

@ -15,7 +15,7 @@ namespace MyCompanyName.MyProjectName.Migrations
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.2.4-servicing-10062")
.HasAnnotation("ProductVersion", "2.2.6-servicing-10079")
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
@ -564,6 +564,8 @@ namespace MyCompanyName.MyProjectName.Migrations
.IsRequired()
.HasMaxLength(200);
b.Property<string>("Properties");
b.HasKey("Id");
b.ToTable("IdentityServerApiResources");
@ -704,6 +706,8 @@ namespace MyCompanyName.MyProjectName.Migrations
b.Property<string>("Description")
.HasMaxLength(1000);
b.Property<int>("DeviceCodeLifetime");
b.Property<bool>("EnableLocalLogin");
b.Property<bool>("Enabled");
@ -755,6 +759,11 @@ namespace MyCompanyName.MyProjectName.Migrations
b.Property<bool>("UpdateAccessTokenClaimsOnRefresh");
b.Property<string>("UserCodeType")
.HasMaxLength(100);
b.Property<int?>("UserSsoLifetime");
b.HasKey("Id");
b.HasIndex("ClientId")
@ -984,6 +993,8 @@ namespace MyCompanyName.MyProjectName.Migrations
.IsRequired()
.HasMaxLength(200);
b.Property<string>("Properties");
b.Property<bool>("Required");
b.Property<bool>("ShowInDiscoveryDocument");

Loading…
Cancel
Save