YD_WeChatApplet.Api/WeChatApplet/Migrations/20241005152225_init004.cs
2025-06-06 14:57:20 +08:00

109 lines
3.0 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace YD_WeChatApplet.Api.Migrations
{
public partial class init004 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CreateID",
table: "User");
migrationBuilder.DropColumn(
name: "Creator",
table: "User");
migrationBuilder.DropColumn(
name: "CreatorDate",
table: "User");
migrationBuilder.DropColumn(
name: "CreatorID",
table: "User");
migrationBuilder.DropColumn(
name: "Modifier",
table: "User");
migrationBuilder.DropColumn(
name: "ModifyDate",
table: "User");
migrationBuilder.DropColumn(
name: "ModifyID",
table: "User");
migrationBuilder.DropColumn(
name: "Remark",
table: "User");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "CreateID",
table: "User",
type: "int",
nullable: true,
comment: "CreateID");
migrationBuilder.AddColumn<string>(
name: "Creator",
table: "User",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
comment: "创建人");
migrationBuilder.AddColumn<DateTime>(
name: "CreatorDate",
table: "User",
type: "datetime",
nullable: true,
comment: "创建时间");
migrationBuilder.AddColumn<int>(
name: "CreatorID",
table: "User",
type: "int",
nullable: true,
comment: "CreatorID");
migrationBuilder.AddColumn<string>(
name: "Modifier",
table: "User",
type: "nvarchar(200)",
maxLength: 200,
nullable: false,
defaultValue: "",
comment: "修改人");
migrationBuilder.AddColumn<DateTime>(
name: "ModifyDate",
table: "User",
type: "datetime",
nullable: true,
comment: "修改时间");
migrationBuilder.AddColumn<int>(
name: "ModifyID",
table: "User",
type: "int",
nullable: true,
comment: "ModifyID");
migrationBuilder.AddColumn<string>(
name: "Remark",
table: "User",
type: "nvarchar(200)",
maxLength: 200,
nullable: true,
comment: "备注");
}
}
}