irc-netcore-api/IRaCIS.Core.Infra.EFCore/Migrations/20260116084058_PublishDate.cs

40 lines
1.1 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
/// <inheritdoc />
public partial class PublishDate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "PublishDate",
table: "TrialDocument",
type: "datetime2",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "PublishDate",
table: "SystemDocument",
type: "datetime2",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "PublishDate",
table: "TrialDocument");
migrationBuilder.DropColumn(
name: "PublishDate",
table: "SystemDocument");
}
}
}