YD_SmartSports.Api/VOL.Core/Migrations/20240521021735_init012.cs
2025-06-06 16:00:39 +08:00

27 lines
767 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace VOL.Core.Migrations
{
public partial class init012 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "Status",
table: "Ai_Device",
type: "int",
nullable: false,
defaultValue: 0,
comment: "设备状态 固定值1启用2禁用禁用的设备无法使用");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Status",
table: "Ai_Device");
}
}
}