You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Gateways/Data/Migrations/20220724053755_addtime_inte...

38 lines
1.0 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IoTSharp.Gateways.Migrations
{
public partial class addtime_interval : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "Cycles",
table: "PointMappings",
type: "INTEGER",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<float>(
name: "TimeInterval",
table: "ModbusSlaves",
type: "REAL",
nullable: false,
defaultValue: 0f);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Cycles",
table: "PointMappings");
migrationBuilder.DropColumn(
name: "TimeInterval",
table: "ModbusSlaves");
}
}
}