forked from DNNCommunity/DNN.IFrame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path04.03.00.SqlDataProvider
31 lines (28 loc) · 1.88 KB
/
04.03.00.SqlDataProvider
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/************************************************************/
/***** SqlDataProvider *****/
/***** *****/
/***** *****/
/***** Note: To manually execute this script you must *****/
/***** perform a search and replace operation *****/
/***** for {databaseOwner} and {objectQualifier} *****/
/***** *****/
/************************************************************/
/* approve value for border setting */
UPDATE ms
SET SettingValue = CASE WHEN settingvalue = 'on' THEN '1' ELSE '0' END
FROM {databaseOwner}[{objectQualifier}DesktopModules] dm INNER JOIN
{databaseOwner}[{objectQualifier}ModuleDefinitions] md ON dm.DesktopModuleID = md.DesktopModuleID INNER JOIN
{databaseOwner}[{objectQualifier}ModuleSettings] ms INNER JOIN
{databaseOwner}[{objectQualifier}Modules] m ON ms.ModuleID = m.ModuleID ON md.ModuleDefID = m.ModuleDefID
WHERE (ms.SettingName = N'frameborder') AND (dm.FriendlyName = N'IFrame')
/* approve value for allow transparency setting */
UPDATE ms
SET SettingValue = CASE WHEN settingvalue = 'true' THEN 'true' ELSE '' END
FROM {databaseOwner}[{objectQualifier}DesktopModules] dm INNER JOIN
{databaseOwner}[{objectQualifier}ModuleDefinitions] md ON dm.DesktopModuleID = md.DesktopModuleID INNER JOIN
{databaseOwner}[{objectQualifier}ModuleSettings] ms INNER JOIN
{databaseOwner}[{objectQualifier}Modules] m ON ms.ModuleID = m.ModuleID ON md.ModuleDefID = m.ModuleDefID
WHERE (ms.SettingName = N'allowtransparency') AND (dm.FriendlyName = N'IFrame')
/************************************************************/
/***** SqlDataProvider *****/
/************************************************************/