fix: reconcile orphan migration history
This commit is contained in:
@@ -1,30 +1,22 @@
|
||||
using JobTrackerApi.Data;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace JobTrackerApi.Migrations
|
||||
{
|
||||
[DbContext(typeof(JobTrackerContext))]
|
||||
[Migration("20260311121000_AddCorrespondenceEmailFields")]
|
||||
public partial class AddCorrespondenceEmailFields : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Subject",
|
||||
table: "Correspondences",
|
||||
type: "TEXT",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Channel",
|
||||
table: "Correspondences",
|
||||
type: "TEXT",
|
||||
nullable: true);
|
||||
// Schema is provisioned idempotently by StartupInitializationExtensions.
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(name: "Subject", table: "Correspondences");
|
||||
migrationBuilder.DropColumn(name: "Channel", table: "Correspondences");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using JobTrackerApi.Data;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
@@ -6,22 +8,19 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
||||
namespace JobTrackerApi.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
[DbContext(typeof(JobTrackerContext))]
|
||||
[Migration("20260311180000_AddShortSummary")]
|
||||
public partial class AddShortSummary : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ShortSummary",
|
||||
table: "JobApplications",
|
||||
type: "TEXT",
|
||||
nullable: true);
|
||||
// Schema is provisioned idempotently by StartupInitializationExtensions.
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(name: "ShortSummary", table: "JobApplications");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user