feat(cv-import): ground reviewed facts in revisioned career profiles

This commit is contained in:
cesnimda
2026-10-26 14:30:14 +01:00
parent 3ea8ff9d62
commit e8f76a9dea
24 changed files with 1197 additions and 13 deletions
@@ -0,0 +1,26 @@
using JobTrackerApi.Data;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
namespace JobTrackerApi.Migrations;
#nullable disable
[DbContext(typeof(JobTrackerContext))]
[Migration("20261026090000_AddCvImportReviewEvidence")]
public sealed class AddCvImportReviewEvidence : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
var text = ActiveProvider.Contains("MySql", StringComparison.OrdinalIgnoreCase) ? "longtext" : "TEXT";
migrationBuilder.AddColumn<string>("DocumentJson", "CvExtractionRuns", type: text, nullable: true);
migrationBuilder.AddColumn<string>("ReviewJson", "CvExtractionRuns", type: text, nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
foreach (var column in new[] { "DocumentJson", "ReviewJson" })
if (ActiveProvider.Contains("Sqlite", StringComparison.OrdinalIgnoreCase)) migrationBuilder.Sql($"ALTER TABLE \"CvExtractionRuns\" DROP COLUMN \"{column}\";");
else migrationBuilder.DropColumn(column, "CvExtractionRuns");
}
}