From ac3fbf506ee69ca7d463151ac144b46dc9e99ad4 Mon Sep 17 00:00:00 2001 From: Lucas McDaniel Date: Fri, 21 Jun 2024 08:55:39 -0700 Subject: [PATCH] Adding PK to the employee ID column and changing hosting location. --- .../confidential/contosoHR/config/cloud-init.yaml | 2 +- sovereignApplications/confidential/contosoHR/data/schema.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sovereignApplications/confidential/contosoHR/config/cloud-init.yaml b/sovereignApplications/confidential/contosoHR/config/cloud-init.yaml index 32363a4..a56b7f0 100644 --- a/sovereignApplications/confidential/contosoHR/config/cloud-init.yaml +++ b/sovereignApplications/confidential/contosoHR/config/cloud-init.yaml @@ -26,7 +26,7 @@ write_files: [Install] WantedBy=multi-user.target runcmd: -- wget https://hrwebapp.blob.core.windows.net/contosohr/ContosoHR.zip +- wget https://customerprototypes.blob.core.windows.net/contosohr/ContosoHR.zip - mkdir --parents /home/contosohr/ContosoHR - bsdtar --extract --file ContosoHR.zip --directory /home/contosohr/ContosoHR --strip-components=1 - chown --recursive contosohr:contosohr /home/contosohr/ diff --git a/sovereignApplications/confidential/contosoHR/data/schema.sql b/sovereignApplications/confidential/contosoHR/data/schema.sql index 5d767cb..ae4fcc9 100644 --- a/sovereignApplications/confidential/contosoHR/data/schema.sql +++ b/sovereignApplications/confidential/contosoHR/data/schema.sql @@ -3,7 +3,7 @@ --- SUMMARY: Create employee table --- CREATE TABLE [HR].[Employees] ( - [EmployeeID] [int] IDENTITY(1,1) NOT NULL, + [EmployeeID] [int] IDENTITY(1,1) PRIMARY KEY NOT NULL, [SSN] [char](11) NOT NULL, [FirstName] [nvarchar](50) NOT NULL, [LastName] [nvarchar](50) NOT NULL,