From a4fec07c1eccf35d6554dec21bfc35bfc83c2a18 Mon Sep 17 00:00:00 2001 From: ben salim Date: Wed, 19 Oct 2022 14:40:24 +0200 Subject: [PATCH] resolve #1173 --- .../Migrations/20221004121605_Add EdgeDevice.cs | 2 +- .../Migrations/PortalDbContextModelSnapshot.cs | 2 +- src/AzureIoTHubPortal.Domain/Entities/EdgeDevice.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AzureIoTHub.Portal.Infrastructure/Migrations/20221004121605_Add EdgeDevice.cs b/src/AzureIoTHub.Portal.Infrastructure/Migrations/20221004121605_Add EdgeDevice.cs index e160ca2ae..4c2117adf 100644 --- a/src/AzureIoTHub.Portal.Infrastructure/Migrations/20221004121605_Add EdgeDevice.cs +++ b/src/AzureIoTHub.Portal.Infrastructure/Migrations/20221004121605_Add EdgeDevice.cs @@ -26,7 +26,7 @@ protected override void Up(MigrationBuilder migrationBuilder) DeviceModelId = table.Column(type: "text", nullable: false), Version = table.Column(type: "integer", nullable: false), IsEnabled = table.Column(type: "boolean", nullable: false), - Scope = table.Column(type: "text", nullable: false), + Scope = table.Column(type: "text", nullable: true), NbDevices = table.Column(type: "integer", nullable: false), NbModules = table.Column(type: "integer", nullable: false) }, diff --git a/src/AzureIoTHub.Portal.Infrastructure/Migrations/PortalDbContextModelSnapshot.cs b/src/AzureIoTHub.Portal.Infrastructure/Migrations/PortalDbContextModelSnapshot.cs index de64f2bca..4ca12136c 100644 --- a/src/AzureIoTHub.Portal.Infrastructure/Migrations/PortalDbContextModelSnapshot.cs +++ b/src/AzureIoTHub.Portal.Infrastructure/Migrations/PortalDbContextModelSnapshot.cs @@ -273,7 +273,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("NbModules") .HasColumnType("integer"); - b.Property("Scope") + b.Property("Scope") .IsRequired() .HasColumnType("text"); diff --git a/src/AzureIoTHubPortal.Domain/Entities/EdgeDevice.cs b/src/AzureIoTHubPortal.Domain/Entities/EdgeDevice.cs index b4d0d3442..aa1e96abb 100644 --- a/src/AzureIoTHubPortal.Domain/Entities/EdgeDevice.cs +++ b/src/AzureIoTHubPortal.Domain/Entities/EdgeDevice.cs @@ -21,7 +21,7 @@ public class EdgeDevice : EntityBase /// /// The IoT Edge scope tag value. /// - public string Scope { get; set; } + public string? Scope { get; set; } /// /// The number of connected devices on IoT Edge device.