<cfif form.Type EQ "Patch">
	<cfinclude template="patch_13.5.02.cfm">
</cfif>

<!--- Bug 7692 - Grant Intranet Administrator Rights to Domain Administrators Setting --->
<cfquery datasource="#application.config.DSN#">
IF NOT EXISTS(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'ADConnection' AND COLUMN_NAME = 'DomainAdminSync')
BEGIN
    ALTER TABLE [ADConnection] ADD [DomainAdminSync] [bit] NOT NULL CONSTRAINT [DF_ADConnection_DomainAdminSync]  DEFAULT ((1));
END
</cfquery>

<cfquery datasource="#application.config.DSN#">
UPDATE [ADConnection]
SET [DomainAdminSync] = 1;
</cfquery>