Skip to content

Commit

Permalink
Fix #1289 - Add ClassType to device twin configuration for loraWAN (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kbeaugrand committed Sep 27, 2022
1 parent bf060b4 commit 188ffb1
Show file tree
Hide file tree
Showing 6 changed files with 389 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// Copyright (c) CGI France. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

#nullable disable

namespace AzureIoTHub.Portal.Infrastructure.Migrations
{
using AzureIoTHub.Portal.Models.v10.LoRaWAN;
using Microsoft.EntityFrameworkCore.Migrations;

public partial class AddsupportforClassTypeindevicemodel : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
_ = migrationBuilder.AddColumn<int>(
name: "ClassType",
table: "DeviceModels",
type: "integer",
nullable: false,
defaultValue: ClassType.A);
}

protected override void Down(MigrationBuilder migrationBuilder)
{
_ = migrationBuilder.DropColumn(
name: "ClassType",
table: "DeviceModels");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.Property<string>("AppEUI")
.HasColumnType("text");

b.Property<int?>("ClassType")
.HasColumnType("integer");

b.Property<int?>("Deduplication")
.HasColumnType("integer");

Expand Down
Loading

0 comments on commit 188ffb1

Please sign in to comment.