Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
resolve issue with migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Linden committed Dec 1, 2016
1 parent 9350f73 commit 947229c
Show file tree
Hide file tree
Showing 4 changed files with 188 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@
<Compile Include="Migrations\201612011931409_ProductivityMeasureNotRequired.Designer.cs">
<DependentUpon>201612011931409_ProductivityMeasureNotRequired.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\201612012033496_FixMigrations.cs" />
<Compile Include="Migrations\201612012033496_FixMigrations.Designer.cs">
<DependentUpon>201612012033496_FixMigrations.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\Configuration.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Repositories\ApplicationRepository.cs" />
Expand Down Expand Up @@ -403,6 +407,9 @@
<EmbeddedResource Include="Migrations\201612011931409_ProductivityMeasureNotRequired.resx">
<DependentUpon>201612011931409_ProductivityMeasureNotRequired.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Migrations\201612012033496_FixMigrations.resx">
<DependentUpon>201612012033496_FixMigrations.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
namespace DOL.WHD.Section14c.DataAccess.Migrations
{
using System;
using System.Data.Entity.Migrations;

public partial class FixMigrations : DbMigration
{
public override void Up()
{
AddColumn("dbo.EmployerInfoes", "HasMailingAddress", c => c.Boolean());
AddColumn("dbo.EmployerInfoes", "MailingAddress_Id", c => c.Guid());
CreateIndex("dbo.EmployerInfoes", "MailingAddress_Id");
AddForeignKey("dbo.EmployerInfoes", "MailingAddress_Id", "dbo.Addresses", "Id");
DropColumn("dbo.EmployerInfoes", "ProvidingFacilitiesDeductionTypeOther");
}

public override void Down()
{
AddColumn("dbo.EmployerInfoes", "ProvidingFacilitiesDeductionTypeOther", c => c.String());
DropForeignKey("dbo.EmployerInfoes", "MailingAddress_Id", "dbo.Addresses");
DropIndex("dbo.EmployerInfoes", new[] { "MailingAddress_Id" });
DropColumn("dbo.EmployerInfoes", "MailingAddress_Id");
DropColumn("dbo.EmployerInfoes", "HasMailingAddress");
}
}
}
Loading

0 comments on commit 947229c

Please sign in to comment.