fix(db): register legacy task migrations
CI - Build & Test / Backend (.NET) (push) Successful in 50s
CI - Build & Test / Backend integration (PostgreSQL/Toxiproxy) (push) Failing after 58s
CI - Build & Test / Frontend (Vue/TS) (push) Has been cancelled
CI - Build & Test / Security Check (push) Has been cancelled
CI - Build & Test / Deploy Nexus (push) Has been cancelled

This commit is contained in:
AzuTear
2026-08-01 01:44:52 +02:00
parent 3dac335767
commit bf32a7def2
5 changed files with 95 additions and 52 deletions
@@ -1,28 +1,34 @@
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Nexus.Api.Data;
#nullable disable
namespace Nexus.Api.Migrations
{
/// <inheritdoc />
[DbContext(typeof(NexusDbContext))]
[Migration("20260618233001_AddTaskDueDate")]
public partial class AddTaskDueDate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTimeOffset>(
name: "DueDate",
table: "Tasks",
type: "timestamp with time zone",
nullable: true);
migrationBuilder.Sql(
"""
ALTER TABLE "Tasks"
ADD COLUMN IF NOT EXISTS "DueDate" timestamp with time zone;
""");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DueDate",
table: "Tasks");
migrationBuilder.Sql(
"""
ALTER TABLE "Tasks"
DROP COLUMN IF EXISTS "DueDate";
""");
}
}
}