using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace CvSearch.Data.Migrations
{
    /// <inheritdoc />
    public partial class FixBestJobsLinkFilter : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            // bestjobs.eu individual job listings use /loc-de-munca/{slug}.
            // The original seed value /ro/locuri-de-munca/ matched only category nav links,
            // so zero job URLs passed the stage-1 filter.
            migrationBuilder.UpdateData(
                schema: MigrationConstants.SchemaName,
                table: "JobProviders",
                keyColumn: "Id",
                keyValue: 2,
                column: "JobLinkContains",
                value: "/loc-de-munca/");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.UpdateData(
                schema: MigrationConstants.SchemaName,
                table: "JobProviders",
                keyColumn: "Id",
                keyValue: 2,
                column: "JobLinkContains",
                value: "/ro/locuri-de-munca/");
        }
    }
}
