shoc-backend/Data.SeaHavenIndustries/Migrations/20260416212330_AddExternalSyncFields.cs

130 lines
3.8 KiB
C#
Raw Normal View History

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Data.SeaHavenIndustries.Migrations
{
/// <inheritdoc />
public partial class AddExternalSyncFields : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Building",
table: "workOrders",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Customer",
table: "workOrders",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "DateReported",
table: "workOrders",
type: "datetime2",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "ExternalWorkOrderId",
table: "workOrders",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "ScheduledStart",
table: "workOrders",
type: "datetime2",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Severity",
table: "workOrders",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "SiteCode",
table: "workOrders",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "SourceEmailS3Key",
table: "workOrders",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Commenter",
table: "Comments",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "ExternalCommentId",
table: "Comments",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RecordType",
table: "Comments",
type: "nvarchar(max)",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Building",
table: "workOrders");
migrationBuilder.DropColumn(
name: "Customer",
table: "workOrders");
migrationBuilder.DropColumn(
name: "DateReported",
table: "workOrders");
migrationBuilder.DropColumn(
name: "ExternalWorkOrderId",
table: "workOrders");
migrationBuilder.DropColumn(
name: "ScheduledStart",
table: "workOrders");
migrationBuilder.DropColumn(
name: "Severity",
table: "workOrders");
migrationBuilder.DropColumn(
name: "SiteCode",
table: "workOrders");
migrationBuilder.DropColumn(
name: "SourceEmailS3Key",
table: "workOrders");
migrationBuilder.DropColumn(
name: "Commenter",
table: "Comments");
migrationBuilder.DropColumn(
name: "ExternalCommentId",
table: "Comments");
migrationBuilder.DropColumn(
name: "RecordType",
table: "Comments");
}
}
}