iotgateway/IoTGateway.DataAccess/Migrations/20240531142726_IsTrigger.cs

27 lines
706 B
C#
Raw Normal View History

2024-05-31 14:58:58 +00:00
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IoTGateway.DataAccess.Migrations
{
public partial class IsTrigger : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsTrigger",
table: "DeviceVariables",
type: "INTEGER",
nullable: false,
defaultValue: false);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsTrigger",
table: "DeviceVariables");
}
}
}