bf32a7def2
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
35 lines
948 B
C#
35 lines
948 B
C#
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.Sql(
|
|
"""
|
|
ALTER TABLE "Tasks"
|
|
ADD COLUMN IF NOT EXISTS "DueDate" timestamp with time zone;
|
|
""");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.Sql(
|
|
"""
|
|
ALTER TABLE "Tasks"
|
|
DROP COLUMN IF EXISTS "DueDate";
|
|
""");
|
|
}
|
|
}
|
|
}
|