-
Notifications
You must be signed in to change notification settings - Fork 0
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 #594 from DFE-Digital/feature/send-form-a-mat-proj…
…ects-to-complete Feature/send form a mat projects to complete
- Loading branch information
Showing
35 changed files
with
4,972 additions
and
101 deletions.
There are no files selected for viewing
2,359 changes: 2,359 additions & 0 deletions
2,359
...Academisation.Data/Migrations/20241024134022_refactor-readOnly-flag-to-a-date.Designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
68 changes: 68 additions & 0 deletions
68
...cademies.Academisation.Data/Migrations/20241024134022_refactor-readOnly-flag-to-a-date.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,68 @@ | ||
using System; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace Dfe.Academies.Academisation.Data.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class refactorreadOnlyflagtoadate : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropColumn( | ||
name: "IsReadOnly", | ||
schema: "academisation", | ||
table: "TransferProject"); | ||
|
||
migrationBuilder.RenameColumn( | ||
name: "ProjectSentToCompleteDate", | ||
schema: "academisation", | ||
table: "Project", | ||
newName: "ReadOnlyDate"); | ||
|
||
migrationBuilder.RenameColumn( | ||
name: "IsReadOnly", | ||
schema: "academisation", | ||
table: "Project", | ||
newName: "ProjectSentToComplete"); | ||
|
||
migrationBuilder.AddColumn<DateTime>( | ||
name: "ReadOnlyDate", | ||
schema: "academisation", | ||
table: "TransferProject", | ||
type: "datetime2", | ||
nullable: true); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropColumn( | ||
name: "ReadOnlyDate", | ||
schema: "academisation", | ||
table: "TransferProject"); | ||
|
||
migrationBuilder.RenameColumn( | ||
name: "ReadOnlyDate", | ||
schema: "academisation", | ||
table: "Project", | ||
newName: "ProjectSentToCompleteDate"); | ||
|
||
migrationBuilder.RenameColumn( | ||
name: "ProjectSentToComplete", | ||
schema: "academisation", | ||
table: "Project", | ||
newName: "IsReadOnly"); | ||
|
||
migrationBuilder.AddColumn<bool>( | ||
name: "IsReadOnly", | ||
schema: "academisation", | ||
table: "TransferProject", | ||
type: "bit", | ||
nullable: false, | ||
defaultValue: false); | ||
} | ||
} | ||
} |
Oops, something went wrong.