Files
HealthAppRepository/src/PatientProfileService/Persistence/Migrations/20261005082209_AccountProfileAssociation.cs
T

39 lines
1.0 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PatientProfileService.Persistence.Migrations
{
/// <inheritdoc />
public partial class AccountProfileAssociation : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "account_id",
table: "patient",
type: "text",
nullable: true);
migrationBuilder.CreateIndex(
name: "IX_patient_account_id",
table: "patient",
column: "account_id",
unique: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_patient_account_id",
table: "patient");
migrationBuilder.DropColumn(
name: "account_id",
table: "patient");
}
}
}