diff --git a/src/Sql/dbo/Stored Procedures/OrganizationSponsorship_Create.sql b/src/Sql/dbo/Stored Procedures/OrganizationSponsorship_Create.sql index 5a349d2580..f681a4f9e4 100644 --- a/src/Sql/dbo/Stored Procedures/OrganizationSponsorship_Create.sql +++ b/src/Sql/dbo/Stored Procedures/OrganizationSponsorship_Create.sql @@ -8,7 +8,8 @@ CREATE PROCEDURE [dbo].[OrganizationSponsorship_Create] @PlanSponsorshipType TINYINT, @ToDelete BIT, @LastSyncDate DATETIME2 (7), - @ValidUntil DATETIME2 (7) + @ValidUntil DATETIME2 (7), + @IsAdminInitiated BIT AS BEGIN SET NOCOUNT ON @@ -24,7 +25,8 @@ BEGIN [PlanSponsorshipType], [ToDelete], [LastSyncDate], - [ValidUntil] + [ValidUntil], + [IsAdminInitiated] ) VALUES ( @@ -37,7 +39,8 @@ BEGIN @PlanSponsorshipType, @ToDelete, @LastSyncDate, - @ValidUntil + @ValidUntil, + @IsAdminInitiated ) END GO diff --git a/src/Sql/dbo/Stored Procedures/OrganizationSponsorship_CreateMany.sql b/src/Sql/dbo/Stored Procedures/OrganizationSponsorship_CreateMany.sql index 69dbc42a21..61c71c872a 100644 --- a/src/Sql/dbo/Stored Procedures/OrganizationSponsorship_CreateMany.sql +++ b/src/Sql/dbo/Stored Procedures/OrganizationSponsorship_CreateMany.sql @@ -15,7 +15,8 @@ BEGIN [PlanSponsorshipType], [ToDelete], [LastSyncDate], - [ValidUntil] + [ValidUntil], + [IsAdminInitiated] ) SELECT OS.[Id], @@ -27,7 +28,8 @@ BEGIN OS.[PlanSponsorshipType], OS.[ToDelete], OS.[LastSyncDate], - OS.[ValidUntil] + OS.[ValidUntil], + OS.[IsAdminInitiated] FROM @OrganizationSponsorshipsInput OS -END \ No newline at end of file +END diff --git a/src/Sql/dbo/Stored Procedures/OrganizationSponsorship_Update.sql b/src/Sql/dbo/Stored Procedures/OrganizationSponsorship_Update.sql index 128c5b039a..6c82c6cf18 100644 --- a/src/Sql/dbo/Stored Procedures/OrganizationSponsorship_Update.sql +++ b/src/Sql/dbo/Stored Procedures/OrganizationSponsorship_Update.sql @@ -8,7 +8,8 @@ CREATE PROCEDURE [dbo].[OrganizationSponsorship_Update] @PlanSponsorshipType TINYINT, @ToDelete BIT, @LastSyncDate DATETIME2 (7), - @ValidUntil DATETIME2 (7) + @ValidUntil DATETIME2 (7), + @IsAdminInitiated BIT AS BEGIN SET NOCOUNT ON @@ -24,7 +25,8 @@ BEGIN [PlanSponsorshipType] = @PlanSponsorshipType, [ToDelete] = @ToDelete, [LastSyncDate] = @LastSyncDate, - [ValidUntil] = @ValidUntil + [ValidUntil] = @ValidUntil, + [IsAdminInitiated] = @IsAdminInitiated WHERE [Id] = @Id END diff --git a/src/Sql/dbo/Stored Procedures/OrganizationSponsorship_UpdateMany.sql b/src/Sql/dbo/Stored Procedures/OrganizationSponsorship_UpdateMany.sql index 0827738737..c4321a86d2 100644 --- a/src/Sql/dbo/Stored Procedures/OrganizationSponsorship_UpdateMany.sql +++ b/src/Sql/dbo/Stored Procedures/OrganizationSponsorship_UpdateMany.sql @@ -6,7 +6,7 @@ BEGIN UPDATE OS - SET + SET [Id] = OSI.[Id], [SponsoringOrganizationId] = OSI.[SponsoringOrganizationId], [SponsoringOrganizationUserID] = OSI.[SponsoringOrganizationUserID], @@ -16,10 +16,11 @@ BEGIN [PlanSponsorshipType] = OSI.[PlanSponsorshipType], [ToDelete] = OSI.[ToDelete], [LastSyncDate] = OSI.[LastSyncDate], - [ValidUntil] = OSI.[ValidUntil] + [ValidUntil] = OSI.[ValidUntil], + [IsAdminInitiated] = OSI.[IsAdminInitiated] FROM [dbo].[OrganizationSponsorship] OS INNER JOIN @OrganizationSponsorshipsInput OSI ON OS.Id = OSI.Id -END \ No newline at end of file +END