74 lines
2.3 KiB
C#
74 lines
2.3 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddDnaIdtoProcessTimeStamp : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "Child1DnaId",
|
|
table: "ProcessUserTimeStamps",
|
|
type: "char(36)",
|
|
nullable: true,
|
|
collation: "ascii_general_ci");
|
|
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "Child2DnaId",
|
|
table: "ProcessUserTimeStamps",
|
|
type: "char(36)",
|
|
nullable: true,
|
|
collation: "ascii_general_ci");
|
|
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "Child3DnaId",
|
|
table: "ProcessUserTimeStamps",
|
|
type: "char(36)",
|
|
nullable: true,
|
|
collation: "ascii_general_ci");
|
|
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "Child4DnaId",
|
|
table: "ProcessUserTimeStamps",
|
|
type: "char(36)",
|
|
nullable: true,
|
|
collation: "ascii_general_ci");
|
|
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "RootDnaId",
|
|
table: "ProcessUserTimeStamps",
|
|
type: "char(36)",
|
|
nullable: true,
|
|
collation: "ascii_general_ci");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Child1DnaId",
|
|
table: "ProcessUserTimeStamps");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Child2DnaId",
|
|
table: "ProcessUserTimeStamps");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Child3DnaId",
|
|
table: "ProcessUserTimeStamps");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Child4DnaId",
|
|
table: "ProcessUserTimeStamps");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "RootDnaId",
|
|
table: "ProcessUserTimeStamps");
|
|
}
|
|
}
|
|
}
|