Skip to content

Commit 8852656

Browse files
committed
Add missing migrations.
1 parent 70621c6 commit 8852656

File tree

4 files changed

+186
-0
lines changed

4 files changed

+186
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,10 @@
262262
<Compile Include="Migrations\201912170600147_Upgrade_To_ABP_5_1_0.designer.cs">
263263
<DependentUpon>201912170600147_Upgrade_To_ABP_5_1_0.cs</DependentUpon>
264264
</Compile>
265+
<Compile Include="Migrations\201912171252414_Test.cs" />
266+
<Compile Include="Migrations\201912171252414_Test.designer.cs">
267+
<DependentUpon>201912171252414_Test.cs</DependentUpon>
268+
</Compile>
265269
<Compile Include="Migrations\AbpZeroDbMigrator.cs" />
266270
<Compile Include="Migrations\Configuration.cs" />
267271
<Compile Include="Migrations\SeedData\DefaultEditionsCreator.cs" />
@@ -311,6 +315,9 @@
311315
<EmbeddedResource Include="Migrations\201912170600147_Upgrade_To_ABP_5_1_0.resx">
312316
<DependentUpon>201912170600147_Upgrade_To_ABP_5_1_0.cs</DependentUpon>
313317
</EmbeddedResource>
318+
<EmbeddedResource Include="Migrations\201912171252414_Test.resx">
319+
<DependentUpon>201912171252414_Test.cs</DependentUpon>
320+
</EmbeddedResource>
314321
</ItemGroup>
315322
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
316323
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />

src/AbpCompanyName.AbpProjectName.EntityFramework/Migrations/201912171252414_Test.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: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
namespace AbpCompanyName.AbpProjectName.Migrations
2+
{
3+
using System;
4+
using System.Data.Entity.Migrations;
5+
6+
public partial class Test : DbMigration
7+
{
8+
public override void Up()
9+
{
10+
DropIndex("dbo.AbpUserLoginAttempts", new[] { "TenancyName", "UserNameOrEmailAddress", "Result" });
11+
AlterColumn("dbo.AbpSettings", "Value", c => c.String());
12+
AlterColumn("dbo.AbpUserLoginAttempts", "UserNameOrEmailAddress", c => c.String(maxLength: 256));
13+
CreateIndex("dbo.AbpUserLoginAttempts", new[] { "TenancyName", "UserNameOrEmailAddress", "Result" });
14+
}
15+
16+
public override void Down()
17+
{
18+
DropIndex("dbo.AbpUserLoginAttempts", new[] { "TenancyName", "UserNameOrEmailAddress", "Result" });
19+
AlterColumn("dbo.AbpUserLoginAttempts", "UserNameOrEmailAddress", c => c.String(maxLength: 255));
20+
AlterColumn("dbo.AbpSettings", "Value", c => c.String(maxLength: 2000));
21+
CreateIndex("dbo.AbpUserLoginAttempts", new[] { "TenancyName", "UserNameOrEmailAddress", "Result" });
22+
}
23+
}
24+
}

0 commit comments

Comments
 (0)