RDSCollectionSettings table fix
This commit is contained in:
parent
c62368596c
commit
909e942248
2 changed files with 15 additions and 12 deletions
|
@ -5511,14 +5511,14 @@ GO
|
|||
IF NOT EXISTS(SELECT * FROM sys.columns
|
||||
WHERE [name] = N'SecurityLayer' AND [object_id] = OBJECT_ID(N'RDSCollectionSettings'))
|
||||
BEGIN
|
||||
ALTER TABLE [dbo].[RDSCollectionSettings] ADD SecurityLayer NAVRCHAR(20) null;
|
||||
ALTER TABLE [dbo].[RDSCollectionSettings] ADD SecurityLayer NVARCHAR(20) null;
|
||||
END
|
||||
GO
|
||||
|
||||
IF NOT EXISTS(SELECT * FROM sys.columns
|
||||
WHERE [name] = N'EncryptionLevel' AND [object_id] = OBJECT_ID(N'RDSCollectionSettings'))
|
||||
BEGIN
|
||||
ALTER TABLE [dbo].[RDSCollectionSettings] ADD EncryptionLevel NAVRCHAR(20) null;
|
||||
ALTER TABLE [dbo].[RDSCollectionSettings] ADD EncryptionLevel NVARCHAR(20) null;
|
||||
END
|
||||
GO
|
||||
|
||||
|
|
|
@ -499,6 +499,8 @@ namespace WebsitePanel.EnterpriseServer
|
|||
var collection = ObjectUtils.FillObjectFromDataReader<RdsCollection>(DataProvider.GetRDSCollectionById(collectionId));
|
||||
var settings = ObjectUtils.FillObjectFromDataReader<RdsCollectionSettings>(DataProvider.GetRdsCollectionSettingsByCollectionId(collectionId));
|
||||
|
||||
if (settings != null)
|
||||
{
|
||||
if (settings.SecurityLayer == null)
|
||||
{
|
||||
settings.SecurityLayer = SecurityLayerValues.Negotiate.ToString();
|
||||
|
@ -513,6 +515,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
{
|
||||
settings.AuthenticateUsingNLA = true;
|
||||
}
|
||||
}
|
||||
|
||||
return settings;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue