feat(cv-import): ground reviewed facts in revisioned career profiles
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
@@ -1186,6 +1186,8 @@ namespace JobTrackerApi.Migrations
|
||||
|
||||
modelBuilder.Entity("JobTrackerApi.Models.CvExtractionRun", b =>
|
||||
{
|
||||
b.Property<string>("DocumentJson").HasColumnType("TEXT");
|
||||
b.Property<string>("ReviewJson").HasColumnType("TEXT");
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
Reference in New Issue
Block a user