Skip to content

Commit

Permalink
Added job to copy induction from DQT to TRS (#1700)
Browse files Browse the repository at this point in the history
  • Loading branch information
hortha authored Nov 22, 2024
1 parent 2490be9 commit b60c665
Show file tree
Hide file tree
Showing 13 changed files with 7,401 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ public void Configure(EntityTypeBuilder<Person> builder)
builder.Property(p => p.DqtFirstName).HasMaxLength(100).UseCollation("case_insensitive");
builder.Property(p => p.DqtMiddleName).HasMaxLength(100).UseCollation("case_insensitive");
builder.Property(p => p.DqtLastName).HasMaxLength(100).UseCollation("case_insensitive");
builder.Property(p => p.InductionStatus).IsRequired().HasDefaultValue(InductionStatus.None);
}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace TeachingRecordSystem.Core.DataStore.Postgres.Migrations
{
/// <inheritdoc />
public partial class InductionSync : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "dqt_induction_last_sync",
table: "persons",
type: "timestamp with time zone",
nullable: true);

migrationBuilder.AddColumn<DateTime>(
name: "dqt_induction_modified_on",
table: "persons",
type: "timestamp with time zone",
nullable: true);
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "dqt_induction_last_sync",
table: "persons");

migrationBuilder.DropColumn(
name: "dqt_induction_modified_on",
table: "persons");
}
}
}
Loading

0 comments on commit b60c665

Please sign in to comment.