-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
bf060b4
commit 188ffb1
Showing
6 changed files
with
389 additions
and
1 deletion.
There are no files selected for viewing
351 changes: 351 additions & 0 deletions
351
...structure/Migrations/20220927114351_Add support for ClassType in device model.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
...tal.Infrastructure/Migrations/20220927114351_Add support for ClassType in device model.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.