irc-netcore-api/IRaCIS.Core.Infra.EFCore/Migrations/20250226053630_DateOnlytime.cs

42 lines
1.3 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
/// <inheritdoc />
public partial class DateOnlytime : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<DateOnly>(
name: "FirstFinalDate",
table: "TrialFileType",
type: "date",
nullable: true,
comment: "首次定稿日期",
oldClrType: typeof(DateOnly),
oldType: "date",
oldComment: "首次定稿日期");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<DateOnly>(
name: "FirstFinalDate",
table: "TrialFileType",
type: "date",
nullable: false,
defaultValue: new DateOnly(1, 1, 1),
comment: "首次定稿日期",
oldClrType: typeof(DateOnly),
oldType: "date",
oldNullable: true,
oldComment: "首次定稿日期");
}
}
}