IF NOT EXISTS (select * from {databaseOwner}{objectQualifier}Schedule WHERE [TypeFullName]='Bring2mind.DNN.Modules.DMX.Framework.SyncFolderTask, BRING2MIND.DNN.MODULES.DMX.CORE')
INSERT INTO {databaseOwner}{objectQualifier}Schedule ([TypeFullName], [TimeLapse], [TimeLapseMeasurement], [RetryTimeLapse], [RetryTimeLapseMeasurement], [RetainHistoryNum], [AttachToEvent], [CatchUpEnabled], [Enabled], [ObjectDependencies])
VALUES ('Bring2mind.DNN.Modules.DMX.Framework.SyncFolderTask, BRING2MIND.DNN.MODULES.DMX.CORE', 2, 'm', 10, 'm', 20, '', 0, 1, '')
GO

BEGIN TRY
 EXEC('UPDATE {databaseOwner}{objectQualifier}Schedule SET FriendlyName = ''DMX Maintenance Task'' WHERE TypeFullName = ''Bring2mind.DNN.Modules.DMX.Services.Schedule.Maintenance, BRING2MIND.DNN.MODULES.DMX.CORE''');
 EXEC('UPDATE {databaseOwner}{objectQualifier}Schedule SET FriendlyName = ''DMX Service Task'' WHERE TypeFullName = ''Bring2mind.DNN.Modules.DMX.Services.Schedule.ScheduledTask, BRING2MIND.DNN.MODULES.DMX.CORE''');
 EXEC('UPDATE {databaseOwner}{objectQualifier}Schedule SET FriendlyName = ''DMX SyncFolder Task'' WHERE TypeFullName = ''Bring2mind.DNN.Modules.DMX.Framework.SyncFolderTask, BRING2MIND.DNN.MODULES.DMX.CORE''');
END TRY
BEGIN CATCH
END CATCH;
GO
