This repository has been archived by the owner on Jan 17, 2024. It is now read-only.
forked from 18F/dol-whd-14c
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from AppliedIS/refactor-submission
Refactor submission
- Loading branch information
Showing
39 changed files
with
348 additions
and
632 deletions.
There are no files selected for viewing
39 changes: 0 additions & 39 deletions
39
DOL.WHD.Section14c.Api/App_Start/AutoMapperConfiguration.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
DOL.WHD.Section14c.DataAccess/Migrations/201610262048363_RequiredFieldUpdates.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
DOL.WHD.Section14c.DataAccess/Migrations/201610262048363_RequiredFieldUpdates.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
namespace DOL.WHD.Section14c.DataAccess.Migrations | ||
{ | ||
using System; | ||
using System.Data.Entity.Migrations; | ||
|
||
public partial class RequiredFieldUpdates : DbMigration | ||
{ | ||
public override void Up() | ||
{ | ||
DropForeignKey("dbo.HourlyWageInfoes", "AttachmentId", "dbo.Attachments"); | ||
DropForeignKey("dbo.PieceRateWageInfoes", "AttachmentId", "dbo.Attachments"); | ||
DropIndex("dbo.HourlyWageInfoes", new[] { "AttachmentId" }); | ||
DropIndex("dbo.PieceRateWageInfoes", new[] { "AttachmentId" }); | ||
AlterColumn("dbo.EmployerInfoes", "TradeName", c => c.String()); | ||
AlterColumn("dbo.EmployerInfoes", "PriorLegalName", c => c.String()); | ||
AlterColumn("dbo.HourlyWageInfoes", "AttachmentId", c => c.Guid(nullable: false)); | ||
AlterColumn("dbo.PieceRateWageInfoes", "AttachmentId", c => c.Guid(nullable: false)); | ||
CreateIndex("dbo.HourlyWageInfoes", "AttachmentId"); | ||
CreateIndex("dbo.PieceRateWageInfoes", "AttachmentId"); | ||
AddForeignKey("dbo.HourlyWageInfoes", "AttachmentId", "dbo.Attachments", "Id", cascadeDelete: true); | ||
AddForeignKey("dbo.PieceRateWageInfoes", "AttachmentId", "dbo.Attachments", "Id", cascadeDelete: true); | ||
} | ||
|
||
public override void Down() | ||
{ | ||
DropForeignKey("dbo.PieceRateWageInfoes", "AttachmentId", "dbo.Attachments"); | ||
DropForeignKey("dbo.HourlyWageInfoes", "AttachmentId", "dbo.Attachments"); | ||
DropIndex("dbo.PieceRateWageInfoes", new[] { "AttachmentId" }); | ||
DropIndex("dbo.HourlyWageInfoes", new[] { "AttachmentId" }); | ||
AlterColumn("dbo.PieceRateWageInfoes", "AttachmentId", c => c.Guid()); | ||
AlterColumn("dbo.HourlyWageInfoes", "AttachmentId", c => c.Guid()); | ||
AlterColumn("dbo.EmployerInfoes", "PriorLegalName", c => c.String(nullable: false)); | ||
AlterColumn("dbo.EmployerInfoes", "TradeName", c => c.String(nullable: false)); | ||
CreateIndex("dbo.PieceRateWageInfoes", "AttachmentId"); | ||
CreateIndex("dbo.HourlyWageInfoes", "AttachmentId"); | ||
AddForeignKey("dbo.PieceRateWageInfoes", "AttachmentId", "dbo.Attachments", "Id"); | ||
AddForeignKey("dbo.HourlyWageInfoes", "AttachmentId", "dbo.Attachments", "Id"); | ||
} | ||
} | ||
} |
Oops, something went wrong.