Browse Source

Update migrations

pull/7/head
enisn 5 years ago
parent
commit
3bc5a37a65
  1. 33
      services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20211006102113_Initial.Designer.cs
  2. 4
      services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20211006102113_Initial.cs
  3. 31
      services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/AdministrationServiceDbContextModelSnapshot.cs
  4. 1762
      services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20210629140020_Initial.Designer.cs
  5. 26
      services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20211006090548_FrameworkUpdateTo5_0_beta_1.cs
  6. 4
      services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20211006102143_Initial.Designer.cs
  7. 2124
      services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20211006102143_Initial.cs
  8. 239
      services/saas/src/EShopOnAbp.SaasService.EntityFrameworkCore/Migrations/20211006102216_Initial.Designer.cs
  9. 132
      services/saas/src/EShopOnAbp.SaasService.EntityFrameworkCore/Migrations/20211006102216_Initial.cs
  10. 13
      services/saas/src/EShopOnAbp.SaasService.EntityFrameworkCore/Migrations/SaasServiceDbContextModelSnapshot.cs

33
services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20210629102834_Initial.Designer.cs → services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20211006102113_Initial.Designer.cs

@ -8,10 +8,12 @@ using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Volo.Abp.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore;
#nullable disable
namespace EShopOnAbp.AdministrationService.Migrations namespace EShopOnAbp.AdministrationService.Migrations
{ {
[DbContext(typeof(AdministrationServiceDbContext))] [DbContext(typeof(AdministrationServiceDbContext))]
[Migration("20210629102834_Initial")] [Migration("20211006102113_Initial")]
partial class Initial partial class Initial
{ {
protected override void BuildTargetModel(ModelBuilder modelBuilder) protected override void BuildTargetModel(ModelBuilder modelBuilder)
@ -19,9 +21,10 @@ namespace EShopOnAbp.AdministrationService.Migrations
#pragma warning disable 612, 618 #pragma warning disable 612, 618
modelBuilder modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
.HasAnnotation("Relational:MaxIdentifierLength", 128) .HasAnnotation("ProductVersion", "6.0.0-rc.1.21452.10")
.HasAnnotation("ProductVersion", "5.0.7") .HasAnnotation("Relational:MaxIdentifierLength", 128);
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
{ {
@ -70,9 +73,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
.HasColumnName("CorrelationId"); .HasColumnName("CorrelationId");
b.Property<string>("Exceptions") b.Property<string>("Exceptions")
.HasMaxLength(4000) .HasColumnType("nvarchar(max)");
.HasColumnType("nvarchar(4000)")
.HasColumnName("Exceptions");
b.Property<int>("ExecutionDuration") b.Property<int>("ExecutionDuration")
.HasColumnType("int") .HasColumnType("int")
@ -129,7 +130,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
b.HasIndex("TenantId", "UserId", "ExecutionTime"); b.HasIndex("TenantId", "UserId", "ExecutionTime");
b.ToTable("AbpAuditLogs"); b.ToTable("AbpAuditLogs", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>
@ -178,7 +179,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime");
b.ToTable("AbpAuditLogActions"); b.ToTable("AbpAuditLogActions", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
@ -227,7 +228,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); b.HasIndex("TenantId", "EntityTypeFullName", "EntityId");
b.ToTable("AbpEntityChanges"); b.ToTable("AbpEntityChanges", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b =>
@ -268,7 +269,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
b.HasIndex("EntityChangeId"); b.HasIndex("EntityChangeId");
b.ToTable("AbpEntityPropertyChanges"); b.ToTable("AbpEntityPropertyChanges", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlob", b => modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlob", b =>
@ -308,7 +309,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
b.HasIndex("TenantId", "ContainerId", "Name"); b.HasIndex("TenantId", "ContainerId", "Name");
b.ToTable("AbpBlobs"); b.ToTable("AbpBlobs", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlobContainer", b => modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlobContainer", b =>
@ -339,7 +340,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
b.HasIndex("TenantId", "Name"); b.HasIndex("TenantId", "Name");
b.ToTable("AbpBlobContainers"); b.ToTable("AbpBlobContainers", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b =>
@ -369,7 +370,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
b.HasIndex("Name", "ProviderName", "ProviderKey"); b.HasIndex("Name", "ProviderName", "ProviderKey");
b.ToTable("AbpFeatureValues"); b.ToTable("AbpFeatureValues", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b =>
@ -400,7 +401,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
b.HasIndex("Name", "ProviderName", "ProviderKey"); b.HasIndex("Name", "ProviderName", "ProviderKey");
b.ToTable("AbpPermissionGrants"); b.ToTable("AbpPermissionGrants", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b =>
@ -430,7 +431,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
b.HasIndex("Name", "ProviderName", "ProviderKey"); b.HasIndex("Name", "ProviderName", "ProviderKey");
b.ToTable("AbpSettings"); b.ToTable("AbpSettings", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>

4
services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20210629102834_Initial.cs → services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/20211006102113_Initial.cs

@ -1,6 +1,8 @@
using System; using System;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EShopOnAbp.AdministrationService.Migrations namespace EShopOnAbp.AdministrationService.Migrations
{ {
public partial class Initial : Migration public partial class Initial : Migration
@ -28,7 +30,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
BrowserInfo = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true), BrowserInfo = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
HttpMethod = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: true), HttpMethod = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: true),
Url = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), Url = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
Exceptions = table.Column<string>(type: "nvarchar(4000)", maxLength: 4000, nullable: true), Exceptions = table.Column<string>(type: "nvarchar(max)", nullable: true),
Comments = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), Comments = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
HttpStatusCode = table.Column<int>(type: "int", nullable: true), HttpStatusCode = table.Column<int>(type: "int", nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),

31
services/administration/src/EShopOnAbp.AdministrationService.EntityFrameworkCore/Migrations/AdministrationServiceDbContextModelSnapshot.cs

@ -7,6 +7,8 @@ using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Volo.Abp.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore;
#nullable disable
namespace EShopOnAbp.AdministrationService.Migrations namespace EShopOnAbp.AdministrationService.Migrations
{ {
[DbContext(typeof(AdministrationServiceDbContext))] [DbContext(typeof(AdministrationServiceDbContext))]
@ -17,9 +19,10 @@ namespace EShopOnAbp.AdministrationService.Migrations
#pragma warning disable 612, 618 #pragma warning disable 612, 618
modelBuilder modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
.HasAnnotation("Relational:MaxIdentifierLength", 128) .HasAnnotation("ProductVersion", "6.0.0-rc.1.21452.10")
.HasAnnotation("ProductVersion", "5.0.7") .HasAnnotation("Relational:MaxIdentifierLength", 128);
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b =>
{ {
@ -68,9 +71,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
.HasColumnName("CorrelationId"); .HasColumnName("CorrelationId");
b.Property<string>("Exceptions") b.Property<string>("Exceptions")
.HasMaxLength(4000) .HasColumnType("nvarchar(max)");
.HasColumnType("nvarchar(4000)")
.HasColumnName("Exceptions");
b.Property<int>("ExecutionDuration") b.Property<int>("ExecutionDuration")
.HasColumnType("int") .HasColumnType("int")
@ -127,7 +128,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
b.HasIndex("TenantId", "UserId", "ExecutionTime"); b.HasIndex("TenantId", "UserId", "ExecutionTime");
b.ToTable("AbpAuditLogs"); b.ToTable("AbpAuditLogs", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>
@ -176,7 +177,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime");
b.ToTable("AbpAuditLogActions"); b.ToTable("AbpAuditLogActions", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
@ -225,7 +226,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); b.HasIndex("TenantId", "EntityTypeFullName", "EntityId");
b.ToTable("AbpEntityChanges"); b.ToTable("AbpEntityChanges", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b =>
@ -266,7 +267,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
b.HasIndex("EntityChangeId"); b.HasIndex("EntityChangeId");
b.ToTable("AbpEntityPropertyChanges"); b.ToTable("AbpEntityPropertyChanges", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlob", b => modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlob", b =>
@ -306,7 +307,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
b.HasIndex("TenantId", "ContainerId", "Name"); b.HasIndex("TenantId", "ContainerId", "Name");
b.ToTable("AbpBlobs"); b.ToTable("AbpBlobs", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlobContainer", b => modelBuilder.Entity("Volo.Abp.BlobStoring.Database.DatabaseBlobContainer", b =>
@ -337,7 +338,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
b.HasIndex("TenantId", "Name"); b.HasIndex("TenantId", "Name");
b.ToTable("AbpBlobContainers"); b.ToTable("AbpBlobContainers", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b =>
@ -367,7 +368,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
b.HasIndex("Name", "ProviderName", "ProviderKey"); b.HasIndex("Name", "ProviderName", "ProviderKey");
b.ToTable("AbpFeatureValues"); b.ToTable("AbpFeatureValues", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b =>
@ -398,7 +399,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
b.HasIndex("Name", "ProviderName", "ProviderKey"); b.HasIndex("Name", "ProviderName", "ProviderKey");
b.ToTable("AbpPermissionGrants"); b.ToTable("AbpPermissionGrants", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b =>
@ -428,7 +429,7 @@ namespace EShopOnAbp.AdministrationService.Migrations
b.HasIndex("Name", "ProviderName", "ProviderKey"); b.HasIndex("Name", "ProviderName", "ProviderKey");
b.ToTable("AbpSettings"); b.ToTable("AbpSettings", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b =>

1762
services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20210629140020_Initial.Designer.cs

File diff suppressed because it is too large

26
services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20211006090548_FrameworkUpdateTo5_0_beta_1.cs

@ -1,26 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EShopOnAbp.IdentityService.Migrations
{
public partial class FrameworkUpdateTo5_0_beta_1 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsActive",
table: "AbpUsers",
type: "bit",
nullable: false,
defaultValue: false);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsActive",
table: "AbpUsers");
}
}
}

4
services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20211006090548_FrameworkUpdateTo5_0_beta_1.Designer.cs → services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20211006102143_Initial.Designer.cs

@ -13,8 +13,8 @@ using Volo.Abp.EntityFrameworkCore;
namespace EShopOnAbp.IdentityService.Migrations namespace EShopOnAbp.IdentityService.Migrations
{ {
[DbContext(typeof(IdentityServiceDbContext))] [DbContext(typeof(IdentityServiceDbContext))]
[Migration("20211006090548_FrameworkUpdateTo5_0_beta_1")] [Migration("20211006102143_Initial")]
partial class FrameworkUpdateTo5_0_beta_1 partial class Initial
{ {
protected override void BuildTargetModel(ModelBuilder modelBuilder) protected override void BuildTargetModel(ModelBuilder modelBuilder)
{ {

2124
services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20210629140020_Initial.cs → services/identity/src/EShopOnAbp.IdentityService.EntityFrameworkCore/Migrations/20211006102143_Initial.cs

File diff suppressed because it is too large

239
services/saas/src/EShopOnAbp.SaasService.EntityFrameworkCore/Migrations/20210628143749_Initial.Designer.cs → services/saas/src/EShopOnAbp.SaasService.EntityFrameworkCore/Migrations/20211006102216_Initial.Designer.cs

@ -1,118 +1,121 @@
// <auto-generated /> // <auto-generated />
using System; using System;
using EShopOnAbp.SaasService.EntityFrameworkCore; using EShopOnAbp.SaasService.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Volo.Abp.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore;
namespace EShopOnAbp.SaasService.Migrations #nullable disable
{
[DbContext(typeof(SaasServiceDbContext))] namespace EShopOnAbp.SaasService.Migrations
[Migration("20210628143749_Initial")] {
partial class Initial [DbContext(typeof(SaasServiceDbContext))]
{ [Migration("20211006102216_Initial")]
protected override void BuildTargetModel(ModelBuilder modelBuilder) partial class Initial
{ {
#pragma warning disable 612, 618 protected override void BuildTargetModel(ModelBuilder modelBuilder)
modelBuilder {
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) #pragma warning disable 612, 618
.HasAnnotation("Relational:MaxIdentifierLength", 128) modelBuilder
.HasAnnotation("ProductVersion", "5.0.7") .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); .HasAnnotation("ProductVersion", "6.0.0-rc.1.21452.10")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b =>
{ SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
b.Property<Guid>("Id")
.HasColumnType("uniqueidentifier"); modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b =>
{
b.Property<string>("ConcurrencyStamp") b.Property<Guid>("Id")
.IsConcurrencyToken() .HasColumnType("uniqueidentifier");
.HasMaxLength(40)
.HasColumnType("nvarchar(40)") b.Property<string>("ConcurrencyStamp")
.HasColumnName("ConcurrencyStamp"); .IsConcurrencyToken()
.HasMaxLength(40)
b.Property<DateTime>("CreationTime") .HasColumnType("nvarchar(40)")
.HasColumnType("datetime2") .HasColumnName("ConcurrencyStamp");
.HasColumnName("CreationTime");
b.Property<DateTime>("CreationTime")
b.Property<Guid?>("CreatorId") .HasColumnType("datetime2")
.HasColumnType("uniqueidentifier") .HasColumnName("CreationTime");
.HasColumnName("CreatorId");
b.Property<Guid?>("CreatorId")
b.Property<Guid?>("DeleterId") .HasColumnType("uniqueidentifier")
.HasColumnType("uniqueidentifier") .HasColumnName("CreatorId");
.HasColumnName("DeleterId");
b.Property<Guid?>("DeleterId")
b.Property<DateTime?>("DeletionTime") .HasColumnType("uniqueidentifier")
.HasColumnType("datetime2") .HasColumnName("DeleterId");
.HasColumnName("DeletionTime");
b.Property<DateTime?>("DeletionTime")
b.Property<string>("ExtraProperties") .HasColumnType("datetime2")
.HasColumnType("nvarchar(max)") .HasColumnName("DeletionTime");
.HasColumnName("ExtraProperties");
b.Property<string>("ExtraProperties")
b.Property<bool>("IsDeleted") .HasColumnType("nvarchar(max)")
.ValueGeneratedOnAdd() .HasColumnName("ExtraProperties");
.HasColumnType("bit")
.HasDefaultValue(false) b.Property<bool>("IsDeleted")
.HasColumnName("IsDeleted"); .ValueGeneratedOnAdd()
.HasColumnType("bit")
b.Property<DateTime?>("LastModificationTime") .HasDefaultValue(false)
.HasColumnType("datetime2") .HasColumnName("IsDeleted");
.HasColumnName("LastModificationTime");
b.Property<DateTime?>("LastModificationTime")
b.Property<Guid?>("LastModifierId") .HasColumnType("datetime2")
.HasColumnType("uniqueidentifier") .HasColumnName("LastModificationTime");
.HasColumnName("LastModifierId");
b.Property<Guid?>("LastModifierId")
b.Property<string>("Name") .HasColumnType("uniqueidentifier")
.IsRequired() .HasColumnName("LastModifierId");
.HasMaxLength(64)
.HasColumnType("nvarchar(64)"); b.Property<string>("Name")
.IsRequired()
b.HasKey("Id"); .HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.HasIndex("Name");
b.HasKey("Id");
b.ToTable("AbpTenants");
}); b.HasIndex("Name");
modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => b.ToTable("AbpTenants", (string)null);
{ });
b.Property<Guid>("TenantId")
.HasColumnType("uniqueidentifier"); modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b =>
{
b.Property<string>("Name") b.Property<Guid>("TenantId")
.HasMaxLength(64) .HasColumnType("uniqueidentifier");
.HasColumnType("nvarchar(64)");
b.Property<string>("Name")
b.Property<string>("Value") .HasMaxLength(64)
.IsRequired() .HasColumnType("nvarchar(64)");
.HasMaxLength(1024)
.HasColumnType("nvarchar(1024)"); b.Property<string>("Value")
.IsRequired()
b.HasKey("TenantId", "Name"); .HasMaxLength(1024)
.HasColumnType("nvarchar(1024)");
b.ToTable("AbpTenantConnectionStrings");
}); b.HasKey("TenantId", "Name");
modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => b.ToTable("AbpTenantConnectionStrings", (string)null);
{ });
b.HasOne("Volo.Abp.TenantManagement.Tenant", null)
.WithMany("ConnectionStrings") modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b =>
.HasForeignKey("TenantId") {
.OnDelete(DeleteBehavior.Cascade) b.HasOne("Volo.Abp.TenantManagement.Tenant", null)
.IsRequired(); .WithMany("ConnectionStrings")
}); .HasForeignKey("TenantId")
.OnDelete(DeleteBehavior.Cascade)
modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => .IsRequired();
{ });
b.Navigation("ConnectionStrings");
}); modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b =>
#pragma warning restore 612, 618 {
} b.Navigation("ConnectionStrings");
} });
} #pragma warning restore 612, 618
}
}
}

132
services/saas/src/EShopOnAbp.SaasService.EntityFrameworkCore/Migrations/20210628143749_Initial.cs → services/saas/src/EShopOnAbp.SaasService.EntityFrameworkCore/Migrations/20211006102216_Initial.cs

@ -1,65 +1,67 @@
using System; using System;
using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Migrations;
namespace EShopOnAbp.SaasService.Migrations #nullable disable
{
public partial class Initial : Migration namespace EShopOnAbp.SaasService.Migrations
{ {
protected override void Up(MigrationBuilder migrationBuilder) public partial class Initial : Migration
{ {
migrationBuilder.CreateTable( protected override void Up(MigrationBuilder migrationBuilder)
name: "AbpTenants", {
columns: table => new migrationBuilder.CreateTable(
{ name: "AbpTenants",
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), columns: table => new
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), {
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
}, DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
constraints: table => DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
{ },
table.PrimaryKey("PK_AbpTenants", x => x.Id); constraints: table =>
}); {
table.PrimaryKey("PK_AbpTenants", x => x.Id);
migrationBuilder.CreateTable( });
name: "AbpTenantConnectionStrings",
columns: table => new migrationBuilder.CreateTable(
{ name: "AbpTenantConnectionStrings",
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), columns: table => new
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), {
Value = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: false) TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
}, Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
constraints: table => Value = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: false)
{ },
table.PrimaryKey("PK_AbpTenantConnectionStrings", x => new { x.TenantId, x.Name }); constraints: table =>
table.ForeignKey( {
name: "FK_AbpTenantConnectionStrings_AbpTenants_TenantId", table.PrimaryKey("PK_AbpTenantConnectionStrings", x => new { x.TenantId, x.Name });
column: x => x.TenantId, table.ForeignKey(
principalTable: "AbpTenants", name: "FK_AbpTenantConnectionStrings_AbpTenants_TenantId",
principalColumn: "Id", column: x => x.TenantId,
onDelete: ReferentialAction.Cascade); principalTable: "AbpTenants",
}); principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.CreateIndex( });
name: "IX_AbpTenants_Name",
table: "AbpTenants", migrationBuilder.CreateIndex(
column: "Name"); name: "IX_AbpTenants_Name",
} table: "AbpTenants",
column: "Name");
protected override void Down(MigrationBuilder migrationBuilder) }
{
migrationBuilder.DropTable( protected override void Down(MigrationBuilder migrationBuilder)
name: "AbpTenantConnectionStrings"); {
migrationBuilder.DropTable(
migrationBuilder.DropTable( name: "AbpTenantConnectionStrings");
name: "AbpTenants");
} migrationBuilder.DropTable(
} name: "AbpTenants");
} }
}
}

13
services/saas/src/EShopOnAbp.SaasService.EntityFrameworkCore/Migrations/SaasServiceDbContextModelSnapshot.cs

@ -7,6 +7,8 @@ using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Volo.Abp.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore;
#nullable disable
namespace EShopOnAbp.SaasService.Migrations namespace EShopOnAbp.SaasService.Migrations
{ {
[DbContext(typeof(SaasServiceDbContext))] [DbContext(typeof(SaasServiceDbContext))]
@ -17,9 +19,10 @@ namespace EShopOnAbp.SaasService.Migrations
#pragma warning disable 612, 618 #pragma warning disable 612, 618
modelBuilder modelBuilder
.HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer)
.HasAnnotation("Relational:MaxIdentifierLength", 128) .HasAnnotation("ProductVersion", "6.0.0-rc.1.21452.10")
.HasAnnotation("ProductVersion", "5.0.7") .HasAnnotation("Relational:MaxIdentifierLength", 128);
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b =>
{ {
@ -75,7 +78,7 @@ namespace EShopOnAbp.SaasService.Migrations
b.HasIndex("Name"); b.HasIndex("Name");
b.ToTable("AbpTenants"); b.ToTable("AbpTenants", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b =>
@ -94,7 +97,7 @@ namespace EShopOnAbp.SaasService.Migrations
b.HasKey("TenantId", "Name"); b.HasKey("TenantId", "Name");
b.ToTable("AbpTenantConnectionStrings"); b.ToTable("AbpTenantConnectionStrings", (string)null);
}); });
modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b =>

Loading…
Cancel
Save