mirror of https://gitee.com/IoTSharp/Gateways.git
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.
27 lines
727 B
C#
27 lines
727 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace IoTSharp.Gateways.Migrations
|
|
{
|
|
public partial class modify2022 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<byte>(
|
|
name: "SlaveCode",
|
|
table: "PointMappings",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
defaultValue: (byte)0);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "SlaveCode",
|
|
table: "PointMappings");
|
|
}
|
|
}
|
|
}
|