mirror of https://github.com/abpframework/abp.git
4 changed files with 1729 additions and 3 deletions
File diff suppressed because it is too large
@ -0,0 +1,32 @@ |
|||||
|
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); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue