Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

View workflow job for this annotation

GitHub Actions / Test stage / Perform static analysis

Define a constant instead of using this literal 'char(1)' 4 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)

Check warning on line 16 in src/ServiceLayer.Common/Data/Migrations/20250519145947_AddNbssAppointmentEventTable.cs

View workflow job for this annotation

GitHub Actions / Test stage / Perform static analysis

Define a constant instead of using this literal 'char(1)' 4 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
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);
}
}
}
Loading
Loading