From 76cebdd8866d66fead90360a61afa27a97062d56 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 10 May 2017 14:20:35 -0400 Subject: [PATCH] readonly attribute added to group saves --- .../dbo/Stored Procedures/Collection_CreateWithGroups.sql | 6 ++++-- .../dbo/Stored Procedures/Collection_UpdateWithGroups.sql | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Sql/dbo/Stored Procedures/Collection_CreateWithGroups.sql b/src/Sql/dbo/Stored Procedures/Collection_CreateWithGroups.sql index f1c9dc294c..fcba6e24fd 100644 --- a/src/Sql/dbo/Stored Procedures/Collection_CreateWithGroups.sql +++ b/src/Sql/dbo/Stored Procedures/Collection_CreateWithGroups.sql @@ -22,11 +22,13 @@ BEGIN INSERT INTO [dbo].[CollectionGroup] ( [CollectionId], - [GroupId] + [GroupId], + [ReadOnly] ) SELECT @Id, - [Id] + [Id], + 0 FROM @GroupIds WHERE diff --git a/src/Sql/dbo/Stored Procedures/Collection_UpdateWithGroups.sql b/src/Sql/dbo/Stored Procedures/Collection_UpdateWithGroups.sql index abd68f1ee1..83d08c5b5e 100644 --- a/src/Sql/dbo/Stored Procedures/Collection_UpdateWithGroups.sql +++ b/src/Sql/dbo/Stored Procedures/Collection_UpdateWithGroups.sql @@ -31,7 +31,8 @@ BEGIN INSERT VALUES ( @Id, - [Source].[Id] + [Source].[Id], + 0 ) WHEN NOT MATCHED BY SOURCE AND [Target].[CollectionId] = @Id THEN