27 lines
767 B
C#
27 lines
767 B
C#
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");
|
||
}
|
||
}
|
||
} |