iotgateway/IoTGateway.DataAccess/Migrations/20220825004835_variableindex.cs

27 lines
699 B
C#
Raw Permalink Normal View History

2022-08-25 00:59:49 +00:00
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IoTGateway.DataAccess.Migrations
{
public partial class variableindex : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<uint>(
name: "Index",
table: "DeviceVariables",
type: "INTEGER",
nullable: false,
defaultValue: 0u);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Index",
table: "DeviceVariables");
}
}
}