Skip to content

Commit

Permalink
resolve #1173 (#1379)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sben65 authored Oct 19, 2022
1 parent 44e8088 commit f393b4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
DeviceModelId = table.Column<string>(type: "text", nullable: false),
Version = table.Column<int>(type: "integer", nullable: false),
IsEnabled = table.Column<bool>(type: "boolean", nullable: false),
Scope = table.Column<string>(type: "text", nullable: false),
Scope = table.Column<string>(type: "text", nullable: true),
NbDevices = table.Column<int>(type: "integer", nullable: false),
NbModules = table.Column<int>(type: "integer", nullable: false)
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.Property<int>("NbModules")
.HasColumnType("integer");

b.Property<string>("Scope")
b.Property<string?>("Scope")
.IsRequired()
.HasColumnType("text");

Expand Down
2 changes: 1 addition & 1 deletion src/AzureIoTHubPortal.Domain/Entities/EdgeDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class EdgeDevice : EntityBase
/// <summary>
/// The IoT Edge scope tag value.
/// </summary>
public string Scope { get; set; }
public string? Scope { get; set; }

/// <summary>
/// The number of connected devices on IoT Edge device.
Expand Down

0 comments on commit f393b4e

Please sign in to comment.