mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 06:03:12 +00:00
- Add ScheduledDate field to Dispatch model and DTO - Save scheduled date when dispatching to vendor - Include ScheduledDate in dispatch response projections
29 lines
780 B
C#
29 lines
780 B
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Data.SeaHavenIndustries.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddDispatchScheduledDate : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "ScheduledDate",
|
|
table: "Dispatches",
|
|
type: "datetime2",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "ScheduledDate",
|
|
table: "Dispatches");
|
|
}
|
|
}
|
|
}
|