-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new column Guid to AstarteFailedMessageEntry
Add new column Guid. Column Guid is used for storing message IDs. Message ID is the unique identification for every successful send message to the MQTT broker. Signed-off-by: Osman Hadzic <osman.hadzic@secomind.com>
- Loading branch information
1 parent
50ce0b6
commit d0b51c4
Showing
6 changed files
with
148 additions
and
2 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -29,5 +29,7 @@ public interface IAstarteFailedMessage | |
int GetQos(); | ||
|
||
long GetExpiry(); | ||
|
||
Guid GetGuid(); | ||
} | ||
} |
82 changes: 82 additions & 0 deletions
82
AstarteDeviceSDKCSharp/Migrations/20240418081235_AddMessageGuidColumn.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
AstarteDeviceSDKCSharp/Migrations/20240418081235_AddMessageGuidColumn.Designer.cs.license
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,5 @@ | ||
# This file is part of Astarte. | ||
# | ||
# Copyright 2024 SECO Mind Srl | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 |
40 changes: 40 additions & 0 deletions
40
AstarteDeviceSDKCSharp/Migrations/20240418081235_AddMessageGuidColumn.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,40 @@ | ||
// This file is part of Astarte. | ||
// | ||
// Copyright 2024 SECO Mind Srl | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace AstarteDeviceSDKCSharp.Migrations | ||
{ | ||
public partial class AddMessageGuidColumn : Migration | ||
{ | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AddColumn<Guid>( | ||
name: "guid", | ||
table: "AstarteFailedMessages", | ||
type: "TEXT", | ||
nullable: false, | ||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "Index_Guid", | ||
table: "AstarteFailedMessages", | ||
column: "guid"); | ||
} | ||
|
||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropIndex( | ||
name: "Index_Guid", | ||
table: "AstarteFailedMessages"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "guid", | ||
table: "AstarteFailedMessages"); | ||
} | ||
} | ||
} |
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