39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
![]() |
using System;
|
|||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace YD_WeChatApplet.Api.Migrations
|
|||
|
{
|
|||
|
public partial class _20250427v1 : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AlterColumn<string>(
|
|||
|
name: "BirthDate",
|
|||
|
table: "User",
|
|||
|
type: "nvarchar(100)",
|
|||
|
nullable: true,
|
|||
|
comment: "出生日期",
|
|||
|
oldClrType: typeof(DateTime),
|
|||
|
oldType: "datetime",
|
|||
|
oldNullable: true,
|
|||
|
oldComment: "出生日期");
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AlterColumn<DateTime>(
|
|||
|
name: "BirthDate",
|
|||
|
table: "User",
|
|||
|
type: "datetime",
|
|||
|
nullable: true,
|
|||
|
comment: "出生日期",
|
|||
|
oldClrType: typeof(string),
|
|||
|
oldType: "nvarchar(100)",
|
|||
|
oldNullable: true,
|
|||
|
oldComment: "出生日期");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|