487924e345
- Move IRagRepository, EfRagRepository, and VectorSerializer from rag-api/Data to rag-data/Repositories - Add rag-api-models ProjectReference to rag-data.csproj for model type availability - Delete rag-api/Data folder (no longer needed; all data access is now in rag-data) - This aligns RAG with email-api and other services: all data code in the data project Pattern: rag-api (API logic) → rag-data (repository, EF entities, migrations) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
48 lines
1.4 KiB
C#
48 lines
1.4 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using CvSearch.Data;
|
|
|
|
#nullable disable
|
|
|
|
namespace CvSearch.Data.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddLanguageToJobSearchEntities : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Language",
|
|
schema: MigrationConstants.SchemaName,
|
|
table: "JobSearchTokens",
|
|
type: "nvarchar(8)",
|
|
maxLength: 8,
|
|
nullable: false,
|
|
defaultValue: "en");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Language",
|
|
schema: MigrationConstants.SchemaName,
|
|
table: "JobSearchSessions",
|
|
type: "nvarchar(8)",
|
|
maxLength: 8,
|
|
nullable: false,
|
|
defaultValue: "en");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Language",
|
|
schema: MigrationConstants.SchemaName,
|
|
table: "JobSearchTokens");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Language",
|
|
schema: MigrationConstants.SchemaName,
|
|
table: "JobSearchSessions");
|
|
}
|
|
}
|
|
}
|