39 lines
1019 B
C#
39 lines
1019 B
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace TaskTracker.Infrastructure.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddTaskDueAt : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<DateTimeOffset>(
|
|
name: "DueAt",
|
|
table: "Tasks",
|
|
type: "datetimeoffset",
|
|
nullable: true);
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_Tasks_DueAt",
|
|
table: "Tasks",
|
|
column: "DueAt");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_Tasks_DueAt",
|
|
table: "Tasks");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DueAt",
|
|
table: "Tasks");
|
|
}
|
|
}
|
|
}
|