YD_SmartSports.Api/VOL.Core/Migrations/20250804030454_20250804v1.cs
2025-08-06 14:51:33 +08:00

57 lines
2.0 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace VOL.Core.Migrations
{
public partial class _20250804v1 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
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<int>(type: "int", nullable: false, comment: "Id")
.Annotation("SqlServer:Identity", "1, 1"),
AppType = table.Column<int>(type: "int", nullable: false, comment: "AppType"),
Remarks = table.Column<string>(type: "nvarchar(2000)", nullable: true, comment: "备注"),
Version = table.Column<string>(type: "nvarchar(200)", nullable: true, comment: "版本号"),
Url = table.Column<string>(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<string>(
name: "Rank",
table: "Ai_FastJumpRopeData",
type: "nvarchar(100)",
nullable: true,
comment: "等级",
oldClrType: typeof(int),
oldType: "int",
oldNullable: true,
oldComment: "等级");
}
}
}