using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace VOL.Core.Migrations { public partial class _20250804v1 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Rank", table: "Ai_FastJumpRopeData", type: "int", nullable: true, comment: "等级", oldClrType: typeof(string), oldType: "nvarchar(100)", oldNullable: true, oldComment: "等级"); migrationBuilder.CreateTable( name: "Ai_AppVersion", columns: table => new { Id = table.Column(type: "int", nullable: false, comment: "Id") .Annotation("SqlServer:Identity", "1, 1"), AppType = table.Column(type: "int", nullable: false, comment: "AppType"), Remarks = table.Column(type: "nvarchar(2000)", nullable: true, comment: "备注"), Version = table.Column(type: "nvarchar(200)", nullable: true, comment: "版本号"), Url = table.Column(type: "nvarchar(2000)", nullable: true, comment: "下载地址") }, constraints: table => { table.PrimaryKey("PK_Ai_AppVersion", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Ai_AppVersion"); migrationBuilder.AlterColumn( name: "Rank", table: "Ai_FastJumpRopeData", type: "nvarchar(100)", nullable: true, comment: "等级", oldClrType: typeof(int), oldType: "int", oldNullable: true, oldComment: "等级"); } } }