using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace VOL.Core.Migrations { public partial class init042 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "ChapterNumber", table: "I_SpecialUnit", type: "int", nullable: false, comment: "章节数量", oldClrType: typeof(int), oldType: "int", oldComment: "单元数量"); migrationBuilder.AddColumn( name: "EndGrade", table: "I_SpecialUnit", type: "int", nullable: false, defaultValue: 0, comment: "结束年级"); migrationBuilder.AddColumn( name: "StartGrade", table: "I_SpecialUnit", type: "int", nullable: false, defaultValue: 0, comment: "开始年级"); migrationBuilder.AddColumn( name: "ChapterOrder", table: "I_SpecialChapter", type: "int", nullable: false, defaultValue: 0, comment: "章节排序"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "EndGrade", table: "I_SpecialUnit"); migrationBuilder.DropColumn( name: "StartGrade", table: "I_SpecialUnit"); migrationBuilder.DropColumn( name: "ChapterOrder", table: "I_SpecialChapter"); migrationBuilder.AlterColumn( name: "ChapterNumber", table: "I_SpecialUnit", type: "int", nullable: false, comment: "单元数量", oldClrType: typeof(int), oldType: "int", oldComment: "章节数量"); } } }