Skip to content

Commit

Permalink
Updated OverallEffectiveness property type in the MisEstablishment ta…
Browse files Browse the repository at this point in the history
…ble (#637)

Added UngradedInspectionOverallOutcome proeprty
  • Loading branch information
FrostyApeOne authored Nov 12, 2024
1 parent 5bbb4ef commit 56e0e84
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions TramsDataApi/DatabaseModels/LegacyTramsDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1652,6 +1652,8 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
.HasColumnName("URN at time of the section 8 inspection");
entity.Property(e => e.WebLink).HasColumnName("Web link");
entity.Property(e => e.UngradedInspectionOverallOutcome).HasColumnName("Ungraded inspection overall outcome");
});

modelBuilder.Entity<FurtherEducationEstablishments>(entity =>
Expand Down
3 changes: 2 additions & 1 deletion TramsDataApi/DatabaseModels/MisEstablishments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public partial class MisEstablishments
public int? LaestabAtTimeOfLatestFullInspection { get; set; }
public string SchoolNameAtTimeOfLatestFullInspection { get; set; }
public string SchoolTypeAtTimeOfLatestFullInspection { get; set; }
public int? OverallEffectiveness { get; set; }
public string OverallEffectiveness { get; set; }
public string CategoryOfConcern { get; set; }
public int? QualityOfEducation { get; set; }
public int? BehaviourAndAttitudes { get; set; }
Expand All @@ -72,5 +72,6 @@ public partial class MisEstablishments
public string PreviousSafeguardingIsEffective { get; set; }
public int? PreviousEarlyYearsProvisionWhereApplicable { get; set; }
public string PreviousSixthFormProvisionWhereApplicable { get; set; }
public string UngradedInspectionOverallOutcome { get; set; }
}
}
3 changes: 2 additions & 1 deletion TramsDataApi/Factories/MISEstablishmentResponseFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ public static MISEstablishmentResponse Create(MisEstablishments misEstablishment
misEstablishments.PreviousEffectivenessOfLeadershipAndManagement.ToString(),
PreviousIsSafeguardingEffective = misEstablishments.PreviousSafeguardingIsEffective,
PreviousEarlyYearsProvision = misEstablishments.PreviousEarlyYearsProvisionWhereApplicable.ToString(),
PreviousSixthFormProvision = misEstablishments.PreviousSixthFormProvisionWhereApplicable
PreviousSixthFormProvision = misEstablishments.PreviousSixthFormProvisionWhereApplicable,
UngradedInspectionOverallOutcome = misEstablishments.UngradedInspectionOverallOutcome
};
}
}
Expand Down
1 change: 1 addition & 0 deletions TramsDataApi/ResponseModels/MISEstablishmentResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,6 @@ public class MISEstablishmentResponse
public string PreviousIsSafeguardingEffective { get; set; }
public string PreviousEarlyYearsProvision { get; set; }
public string PreviousSixthFormProvision { get; set; }
public string UngradedInspectionOverallOutcome { get; set; }
}
}

0 comments on commit 56e0e84

Please sign in to comment.