Skip to content

Commit ef7ca8b

Browse files
committed
complete upgrading to ABP v4.7
1 parent 48745c5 commit ef7ca8b

File tree

6 files changed

+186
-2
lines changed

6 files changed

+186
-2
lines changed

src/AbpCompanyName.AbpProjectName.EntityFramework/AbpCompanyName.AbpProjectName.EntityFramework.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@
240240
<Compile Include="Migrations\201905080308372_Upgrade_ABP_To_4_5_0.Designer.cs">
241241
<DependentUpon>201905080308372_Upgrade_ABP_To_4_5_0.cs</DependentUpon>
242242
</Compile>
243+
<Compile Include="Migrations\201907021413234_Upgraded_To_Abp_v4_7_0.cs" />
244+
<Compile Include="Migrations\201907021413234_Upgraded_To_Abp_v4_7_0.Designer.cs">
245+
<DependentUpon>201907021413234_Upgraded_To_Abp_v4_7_0.cs</DependentUpon>
246+
</Compile>
243247
<Compile Include="Migrations\AbpZeroDbMigrator.cs" />
244248
<Compile Include="Migrations\Configuration.cs" />
245249
<Compile Include="Migrations\SeedData\DefaultEditionsCreator.cs" />
@@ -277,6 +281,9 @@
277281
<EmbeddedResource Include="Migrations\201905080308372_Upgrade_ABP_To_4_5_0.resx">
278282
<DependentUpon>201905080308372_Upgrade_ABP_To_4_5_0.cs</DependentUpon>
279283
</EmbeddedResource>
284+
<EmbeddedResource Include="Migrations\201907021413234_Upgraded_To_Abp_v4_7_0.resx">
285+
<DependentUpon>201907021413234_Upgraded_To_Abp_v4_7_0.cs</DependentUpon>
286+
</EmbeddedResource>
280287
</ItemGroup>
281288
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
282289
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />

src/AbpCompanyName.AbpProjectName.EntityFramework/Migrations/201907021413234_Upgraded_To_Abp_v4_7_0.Designer.cs

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
namespace AbpCompanyName.AbpProjectName.Migrations
2+
{
3+
using System;
4+
using System.Data.Entity.Migrations;
5+
6+
public partial class Upgraded_To_Abp_v4_7_0 : DbMigration
7+
{
8+
public override void Up()
9+
{
10+
DropIndex("dbo.AbpSettings", new[] { "TenantId" });
11+
DropIndex("dbo.AbpSettings", new[] { "UserId" });
12+
CreateIndex("dbo.AbpSettings", new[] { "TenantId", "Name", "UserId" }, unique: true);
13+
}
14+
15+
public override void Down()
16+
{
17+
DropIndex("dbo.AbpSettings", new[] { "TenantId", "Name", "UserId" });
18+
CreateIndex("dbo.AbpSettings", "UserId");
19+
CreateIndex("dbo.AbpSettings", "TenantId");
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)