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( name: "CreateID", table: "User", type: "int", nullable: true, comment: "CreateID"); migrationBuilder.AddColumn( name: "Creator", table: "User", type: "nvarchar(200)", maxLength: 200, nullable: true, comment: "创建人"); migrationBuilder.AddColumn( name: "CreatorDate", table: "User", type: "datetime", nullable: true, comment: "创建时间"); migrationBuilder.AddColumn( name: "CreatorID", table: "User", type: "int", nullable: true, comment: "CreatorID"); migrationBuilder.AddColumn( name: "Modifier", table: "User", type: "nvarchar(200)", maxLength: 200, nullable: false, defaultValue: "", comment: "修改人"); migrationBuilder.AddColumn( name: "ModifyDate", table: "User", type: "datetime", nullable: true, comment: "修改时间"); migrationBuilder.AddColumn( name: "ModifyID", table: "User", type: "int", nullable: true, comment: "ModifyID"); migrationBuilder.AddColumn( name: "Remark", table: "User", type: "nvarchar(200)", maxLength: 200, nullable: true, comment: "备注"); } } }