10 changed files with 1297 additions and 3071 deletions
File diff suppressed because it is too large
@ -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"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
File diff suppressed because it is too large
@ -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
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -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"); |
||||
} |
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue