38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class trialDateOnly : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<DateOnly>(
|
|
name: "TrianingDate",
|
|
table: "TrialTrianingRecord",
|
|
type: "date",
|
|
nullable: true,
|
|
oldClrType: typeof(DateOnly),
|
|
oldType: "date");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<DateOnly>(
|
|
name: "TrianingDate",
|
|
table: "TrialTrianingRecord",
|
|
type: "date",
|
|
nullable: false,
|
|
defaultValue: new DateOnly(1, 1, 1),
|
|
oldClrType: typeof(DateOnly),
|
|
oldType: "date",
|
|
oldNullable: true);
|
|
}
|
|
}
|
|
}
|