Skip to content

Commit ca616ce

Browse files
author
Musa Demir
committed
merge migrations
1 parent 8852656 commit ca616ce

7 files changed

+15
-193
lines changed

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

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,9 @@
258258
<Compile Include="Migrations\201910240752449_Upgraded_To_ABP_5_0_0.designer.cs">
259259
<DependentUpon>201910240752449_Upgraded_To_ABP_5_0_0.cs</DependentUpon>
260260
</Compile>
261-
<Compile Include="Migrations\201912170600147_Upgrade_To_ABP_5_1_0.cs" />
262-
<Compile Include="Migrations\201912170600147_Upgrade_To_ABP_5_1_0.designer.cs">
263-
<DependentUpon>201912170600147_Upgrade_To_ABP_5_1_0.cs</DependentUpon>
264-
</Compile>
265-
<Compile Include="Migrations\201912171252414_Test.cs" />
266-
<Compile Include="Migrations\201912171252414_Test.designer.cs">
267-
<DependentUpon>201912171252414_Test.cs</DependentUpon>
261+
<Compile Include="Migrations\201912171340379_Upgraded_To_ABP_5_1_0.cs" />
262+
<Compile Include="Migrations\201912171340379_Upgraded_To_ABP_5_1_0.designer.cs">
263+
<DependentUpon>201912171340379_Upgraded_To_ABP_5_1_0.cs</DependentUpon>
268264
</Compile>
269265
<Compile Include="Migrations\AbpZeroDbMigrator.cs" />
270266
<Compile Include="Migrations\Configuration.cs" />
@@ -312,11 +308,8 @@
312308
<EmbeddedResource Include="Migrations\201910240752449_Upgraded_To_ABP_5_0_0.resx">
313309
<DependentUpon>201910240752449_Upgraded_To_ABP_5_0_0.cs</DependentUpon>
314310
</EmbeddedResource>
315-
<EmbeddedResource Include="Migrations\201912170600147_Upgrade_To_ABP_5_1_0.resx">
316-
<DependentUpon>201912170600147_Upgrade_To_ABP_5_1_0.cs</DependentUpon>
317-
</EmbeddedResource>
318-
<EmbeddedResource Include="Migrations\201912171252414_Test.resx">
319-
<DependentUpon>201912171252414_Test.cs</DependentUpon>
311+
<EmbeddedResource Include="Migrations\201912171340379_Upgraded_To_ABP_5_1_0.resx">
312+
<DependentUpon>201912171340379_Upgraded_To_ABP_5_1_0.cs</DependentUpon>
320313
</EmbeddedResource>
321314
</ItemGroup>
322315
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

src/AbpCompanyName.AbpProjectName.EntityFramework/Migrations/201912170600147_Upgrade_To_ABP_5_1_0.cs

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/AbpCompanyName.AbpProjectName.EntityFramework/Migrations/201912170600147_Upgrade_To_ABP_5_1_0.resx

Lines changed: 0 additions & 126 deletions
This file was deleted.

src/AbpCompanyName.AbpProjectName.EntityFramework/Migrations/201912171252414_Test.Designer.cs

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/AbpCompanyName.AbpProjectName.EntityFramework/Migrations/201912171252414_Test.cs renamed to src/AbpCompanyName.AbpProjectName.EntityFramework/Migrations/201912171340379_Upgraded_To_ABP_5_1_0.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,28 @@
33
using System;
44
using System.Data.Entity.Migrations;
55

6-
public partial class Test : DbMigration
6+
public partial class Upgraded_To_ABP_5_1_0 : DbMigration
77
{
88
public override void Up()
99
{
10+
DropIndex("dbo.AbpBackgroundJobs", new[] { "IsAbandoned", "NextTryTime" });
1011
DropIndex("dbo.AbpUserLoginAttempts", new[] { "TenancyName", "UserNameOrEmailAddress", "Result" });
1112
AlterColumn("dbo.AbpSettings", "Value", c => c.String());
1213
AlterColumn("dbo.AbpUserLoginAttempts", "UserNameOrEmailAddress", c => c.String(maxLength: 256));
14+
CreateIndex("dbo.AbpBackgroundJobs", new[] { "Priority", "TryCount", "NextTryTime" });
15+
CreateIndex("dbo.AbpBackgroundJobs", "IsAbandoned", name: "IX_IsAbandoned_NextTryTime");
1316
CreateIndex("dbo.AbpUserLoginAttempts", new[] { "TenancyName", "UserNameOrEmailAddress", "Result" });
1417
}
1518

1619
public override void Down()
1720
{
1821
DropIndex("dbo.AbpUserLoginAttempts", new[] { "TenancyName", "UserNameOrEmailAddress", "Result" });
22+
DropIndex("dbo.AbpBackgroundJobs", "IX_IsAbandoned_NextTryTime");
23+
DropIndex("dbo.AbpBackgroundJobs", new[] { "Priority", "TryCount", "NextTryTime" });
1924
AlterColumn("dbo.AbpUserLoginAttempts", "UserNameOrEmailAddress", c => c.String(maxLength: 255));
2025
AlterColumn("dbo.AbpSettings", "Value", c => c.String(maxLength: 2000));
2126
CreateIndex("dbo.AbpUserLoginAttempts", new[] { "TenancyName", "UserNameOrEmailAddress", "Result" });
27+
CreateIndex("dbo.AbpBackgroundJobs", new[] { "IsAbandoned", "NextTryTime" });
2228
}
2329
}
2430
}

0 commit comments

Comments
 (0)