This repository was archived by the owner on Jul 28, 2025. It is now read-only.
generated from nhs-england-tools/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 1
feat: DTOSS-8754 append data into mssql table #20
Merged
ianfnelson
merged 9 commits into
main
from
feat/DTOSS-8754-append-data-into-mssql-table
May 21, 2025
Merged
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
506edbc
feat: Introduced NbssAppointmentEvent model and migration
alex-clayton-1 6340928
feat: Made CancelledBy nullable and recreated the migration
alex-clayton-1 8ba4f3f
feat: Implemented StagingPersister
alex-clayton-1 8aee7b6
feat: Include MeshFileId in mapping
alex-clayton-1 fec852b
test: Added test for StagingPersister
alex-clayton-1 8b319ef
test: Added more tests
alex-clayton-1 47f62dc
refactor: Replaced foreach loop with linq expression and using invari…
alex-clayton-1 f4c3aba
feat: Updated sql data types for NbssApointmentEvent columns and recr…
alex-clayton-1 2a9b54d
feat: Map empty strings to null for optional fields
alex-clayton-1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
222 changes: 222 additions & 0 deletions
222
...rviceLayer.Common/Data/Migrations/20250519145947_AddNbssAppointmentEventTable.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
src/ServiceLayer.Common/Data/Migrations/20250519145947_AddNbssAppointmentEventTable.cs
This file contains hidden or 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 @@ | ||
| using Microsoft.EntityFrameworkCore.Migrations; | ||
|
|
||
| #nullable disable | ||
|
|
||
| namespace ServiceLayer.Mesh.Migrations | ||
| { | ||
| /// <inheritdoc /> | ||
| public partial class AddNbssAppointmentEventTable : Migration | ||
| { | ||
| /// <inheritdoc /> | ||
| protected override void Up(MigrationBuilder migrationBuilder) | ||
| { | ||
| migrationBuilder.AlterColumn<string>( | ||
| name: "CancelledBy", | ||
| table: "NbssAppointmentEvents", | ||
| type: "char(1)", | ||
|
Check warning on line 16 in src/ServiceLayer.Common/Data/Migrations/20250519145947_AddNbssAppointmentEventTable.cs
|
||
| maxLength: 1, | ||
| nullable: true, | ||
| oldClrType: typeof(string), | ||
| oldType: "char(1)", | ||
| oldMaxLength: 1); | ||
| } | ||
|
|
||
| /// <inheritdoc /> | ||
| protected override void Down(MigrationBuilder migrationBuilder) | ||
| { | ||
| migrationBuilder.AlterColumn<string>( | ||
| name: "CancelledBy", | ||
| table: "NbssAppointmentEvents", | ||
| type: "char(1)", | ||
| maxLength: 1, | ||
| nullable: false, | ||
| defaultValue: "", | ||
| oldClrType: typeof(string), | ||
| oldType: "char(1)", | ||
| oldMaxLength: 1, | ||
| oldNullable: true); | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.