27 lines
699 B
C#
27 lines
699 B
C#
![]() |
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");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|