42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Marco.Pms.DataAccess.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class EnhancedWorkItemForParentId_Description : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Description",
|
|
table: "WorkItems",
|
|
type: "longtext",
|
|
nullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "ParentTaskId",
|
|
table: "WorkItems",
|
|
type: "char(36)",
|
|
nullable: true,
|
|
collation: "ascii_general_ci");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Description",
|
|
table: "WorkItems");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ParentTaskId",
|
|
table: "WorkItems");
|
|
}
|
|
}
|
|
}
|