Skip to content

Commit

Permalink
Merge pull request #594 from DFE-Digital/feature/send-form-a-mat-proj…
Browse files Browse the repository at this point in the history
…ects-to-complete

Feature/send form a mat projects to complete
  • Loading branch information
paullocknimble authored Oct 25, 2024
2 parents 734022b + 727f1cf commit 29b2f58
Show file tree
Hide file tree
Showing 35 changed files with 4,972 additions and 101 deletions.

Large diffs are not rendered by default.

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);
}
}
}
Loading

0 comments on commit 29b2f58

Please sign in to comment.