02d2b1e510
Threads the caller's email and client IP through the match pipeline so every Results row records who triggered the match and from where. Closes #45 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
46 lines
1.3 KiB
C#
46 lines
1.3 KiB
C#
using CvMatcher.Data;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace CvMatcher.Data.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddEmailAndIpToResults : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ClientIpAddress",
|
|
schema: MigrationConstants.SchemaName,
|
|
table: "Results",
|
|
type: "nvarchar(45)",
|
|
maxLength: 45,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Email",
|
|
schema: MigrationConstants.SchemaName,
|
|
table: "Results",
|
|
type: "nvarchar(256)",
|
|
maxLength: 256,
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "ClientIpAddress",
|
|
schema: MigrationConstants.SchemaName,
|
|
table: "Results");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Email",
|
|
schema: MigrationConstants.SchemaName,
|
|
table: "Results");
|
|
}
|
|
}
|
|
}
|