<cfif form.Type EQ "Patch">
	<cfinclude template="patch_15.0.08.cfm">
</cfif>

<cfquery datasource="#application.config.DSN#">
    IF NOT EXISTS( SELECT * from INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='BulkIndexTaskHistory' AND COLUMN_NAME='ErrorCount')
    BEGIN	
    ALTER TABLE BulkIndexTaskHistory ADD [ErrorCount] [int] NOT NULL CONSTRAINT [DF_BulkIndexTaskHistory_ErrorCount] DEFAULT ((0));
    END
</cfquery>