using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace VOL.Core.Migrations { public partial class init050 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "ImagePath", table: "G_Activities", type: "nvarchar(2000)", nullable: true, comment: "图片路径"); migrationBuilder.AlterColumn( name: "StartGrade", table: "Ai_SpecialUnit", type: "int", nullable: false, comment: "开始等级", oldClrType: typeof(int), oldType: "int", oldComment: "开始年级"); migrationBuilder.AlterColumn( name: "EndGrade", table: "Ai_SpecialUnit", type: "int", nullable: false, comment: "结束等级", oldClrType: typeof(int), oldType: "int", oldComment: "结束年级"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "ImagePath", table: "G_Activities"); migrationBuilder.AlterColumn( name: "StartGrade", table: "Ai_SpecialUnit", type: "int", nullable: false, comment: "开始年级", oldClrType: typeof(int), oldType: "int", oldComment: "开始等级"); migrationBuilder.AlterColumn( name: "EndGrade", table: "Ai_SpecialUnit", type: "int", nullable: false, comment: "结束年级", oldClrType: typeof(int), oldType: "int", oldComment: "结束等级"); } } }