migrations combined

pull/2157/head
Yunus Emre Kalkan 6 years ago
parent 1e9c40cc34
commit 707a053dd7

@ -1,32 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace MyCompanyName.MyProjectName.Migrations
{
public partial class Remove_UniqueIndex_From_TenantName : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_AbpTenants_Name",
table: "AbpTenants");
migrationBuilder.CreateIndex(
name: "IX_AbpTenants_Name",
table: "AbpTenants",
column: "Name");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_AbpTenants_Name",
table: "AbpTenants");
migrationBuilder.CreateIndex(
name: "IX_AbpTenants_Name",
table: "AbpTenants",
column: "Name",
unique: true);
}
}
}

@ -10,7 +10,7 @@ using MyCompanyName.MyProjectName.EntityFrameworkCore;
namespace MyCompanyName.MyProjectName.Migrations
{
[DbContext(typeof(MyProjectNameMigrationsDbContext))]
[Migration("20191018080830_Initial")]
[Migration("20191022082740_Initial")]
partial class Initial
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
@ -1453,8 +1453,7 @@ namespace MyCompanyName.MyProjectName.Migrations
b.HasKey("Id");
b.HasIndex("Name")
.IsUnique();
b.HasIndex("Name");
b.ToTable("AbpTenants");
});

@ -866,8 +866,7 @@ namespace MyCompanyName.MyProjectName.Migrations
migrationBuilder.CreateIndex(
name: "IX_AbpTenants_Name",
table: "AbpTenants",
column: "Name",
unique: true);
column: "Name");
migrationBuilder.CreateIndex(
name: "IX_AbpUserClaims_UserId",
Loading…
Cancel
Save