Skip to content

Commit f69f062

Browse files
fix: DTOSS-8376 & 8377 Changed SUBSCRIPTION_ID from bigint to UNIQUEIDENTIFIER (#951)
Changed SUBSCRIPTION_ID from bigint to UNIQUEIDENTIFIER in NEMS_SUBSCRIPTION table
1 parent c99f72f commit f69f062

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

application/CohortManager/Set-up/database/create_statement.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ IF NOT EXISTS
512512
BEGIN
513513
CREATE TABLE [dbo].[NEMS_SUBSCRIPTION]
514514
(
515-
SUBSCRIPTION_ID BIGINT NOT NULL,
515+
SUBSCRIPTION_ID UNIQUEIDENTIFIER NOT NULL,
516516
NHS_NUMBER BIGINT NOT NULL,
517517
RECORD_INSERT_DATETIME DATETIME NULL DEFAULT GETDATE(),
518518
RECORD_UPDATE_DATETIME DATETIME NULL DEFAULT GETDATE(),

application/CohortManager/src/Functions/Shared/Model/EFModels/NemsSubscription.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ public class NemsSubscription
77
{
88
[Key]
99
[DatabaseGenerated(DatabaseGeneratedOption.None)]
10-
[Column("SUBSCRIPTION_ID", TypeName = "bigint")]
11-
public long SubscriptionId { get; set; }
10+
[Column("SUBSCRIPTION_ID", TypeName = "uniqueidentifier")]
11+
public Guid SubscriptionId { get; set; }
1212

1313
[Required]
1414
[Column("NHS_NUMBER", TypeName = "bigint")]

0 commit comments

Comments
 (0)