56 lines
1.9 KiB
C#
56 lines
1.9 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace JobTrackerApi.Migrations
|
|
{
|
|
[DbContext(typeof(JobTrackerApi.Data.JobTrackerContext))]
|
|
[Migration("20260311140000_AddJobImportFields")]
|
|
public partial class AddJobImportFields : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Description",
|
|
table: "JobApplications",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "TranslatedDescription",
|
|
table: "JobApplications",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DescriptionLanguage",
|
|
table: "JobApplications",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Tags",
|
|
table: "JobApplications",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "Deadline",
|
|
table: "JobApplications",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(name: "Description", table: "JobApplications");
|
|
migrationBuilder.DropColumn(name: "TranslatedDescription", table: "JobApplications");
|
|
migrationBuilder.DropColumn(name: "DescriptionLanguage", table: "JobApplications");
|
|
migrationBuilder.DropColumn(name: "Tags", table: "JobApplications");
|
|
migrationBuilder.DropColumn(name: "Deadline", table: "JobApplications");
|
|
}
|
|
}
|
|
}
|