Skip to content

Commit

Permalink
Merge pull request #1234 from Avanade/1233-fix-repo-indexer
Browse files Browse the repository at this point in the history
fix: Add @created Parameter in usp_Repository_Insert
  • Loading branch information
iibuan authored Nov 20, 2024
2 parents 44e1c0f + 5165735 commit 16e6eae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sqldb/Stored Procedures/usp_Repository_Insert.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CREATE PROCEDURE [dbo].[usp_Repository_Insert]
@ConfirmAvaIP [BIT] = 0,
@ConfirmEnabledSecurity [BIT] = 0,
@ConfirmNotClientProject [BIT] = 0,
@Created [DATETIME] = NULL,
@CreatedBy [VARCHAR](100) = NULL,
@Organization [VARCHAR](100),
@VisibilityId [INT] = 1,
Expand All @@ -18,6 +19,7 @@ CREATE PROCEDURE [dbo].[usp_Repository_Insert]
AS
BEGIN
DECLARE @Id AS [INT]
SET @Created = ISNULL(@Created, GETDATE())

INSERT INTO [dbo].[Repository]
(
Expand Down Expand Up @@ -49,7 +51,7 @@ BEGIN
@ConfirmAvaIP,
@ConfirmEnabledSecurity,
@ConfirmNotClientProject,
GETDATE(),
@Created,
@CreatedBy,
@Organization,
GETDATE(),
Expand Down

0 comments on commit 16e6eae

Please sign in to comment.