YD_SmartSports.Api/VOL.Core/Migrations/20250109135153_20250109v1.cs

62 lines
1.9 KiB
C#
Raw Normal View History

2025-06-06 16:00:39 +08:00
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace VOL.Core.Migrations
{
public partial class _20250109v1 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<DateTime>(
name: "CreateDate",
table: "S_School",
type: "datetime",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
comment: "创建时间",
oldClrType: typeof(DateTime),
oldType: "datetime",
oldNullable: true,
oldComment: "创建时间");
migrationBuilder.AddColumn<int>(
name: "ModeType",
table: "Ai_FastJumpRopeData",
type: "int",
nullable: false,
defaultValue: 0,
comment: "模式类型");
migrationBuilder.AddColumn<string>(
name: "ModelName",
table: "Ai_FastJumpRopeData",
type: "nvarchar(100)",
nullable: true,
comment: "模式名称");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ModeType",
table: "Ai_FastJumpRopeData");
migrationBuilder.DropColumn(
name: "ModelName",
table: "Ai_FastJumpRopeData");
migrationBuilder.AlterColumn<DateTime>(
name: "CreateDate",
table: "S_School",
type: "datetime",
nullable: true,
comment: "创建时间",
oldClrType: typeof(DateTime),
oldType: "datetime",
oldComment: "创建时间");
}
}
}