SET QUOTED_IDENTIFIER ON

GO

EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M2].[PreviewPassChangesOutsideWindow]', 'Operator Profile',   'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M2].[PreviewPassChangesOutsideWindow]', 'Supervisor Profile', 'PostDeployment';
GO


EXEC [SEC].[UpsertProcedureAndSetToProfile] '[DEL].[GetDelaysForSankey]',        'Operator Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[LAB].[GetHeatMechanicalResults]',  'Operator Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M1].[GetCalendarYear]',            'Operator Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M1].[GetCampaignDelays]',          'Operator Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M1].[GetCurrentAndNextHeats]',     'Operator Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M1].[GetHeatTestDispositions]',    'Operator Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M2].[GetCalendarYear]',            'Operator Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M2].[GetCampaignDelays]',          'Operator Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M2].[GetHeatTestDispositions]',    'Operator Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M2].[GetMillOverview2]',           'Operator Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[SEC].[UpsertDefaultAssetId]',      'Operator Profile', 'PostDeployment';

EXEC [SEC].[UpsertProcedureAndSetToProfile] '[DEL].[GetDelaysForSankey]',        'Supervisor Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[LAB].[GetHeatMechanicalResults]',  'Supervisor Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M1].[GetCalendarYear]',            'Supervisor Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M1].[GetCampaignDelays]',          'Supervisor Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M1].[GetCurrentAndNextHeats]',     'Supervisor Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M1].[GetHeatTestDispositions]',    'Supervisor Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M2].[GetCalendarYear]',            'Supervisor Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M2].[GetCampaignDelays]',          'Supervisor Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M2].[GetHeatTestDispositions]',    'Supervisor Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M2].[GetMillOverview2]',           'Supervisor Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[SEC].[UpsertDefaultAssetId]',      'Supervisor Profile', 'PostDeployment';
GO

-- Carrier assembly form (tablet app) and pass changes.
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M2].[AnswerCarrierForm]',              'Operator Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M2].[GetCarrierInstancePassHistory]',  'Operator Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M2].[UpsertCarrierInstancePass]',      'Operator Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M2].[DeleteCarrierInstancePass]',      'Operator Profile', 'PostDeployment';

EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M2].[AnswerCarrierForm]',              'Supervisor Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M2].[GetCarrierInstancePassHistory]',  'Supervisor Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M2].[UpsertCarrierInstancePass]',      'Supervisor Profile', 'PostDeployment';
EXEC [SEC].[UpsertProcedureAndSetToProfile] '[M2].[DeleteCarrierInstancePass]',      'Supervisor Profile', 'PostDeployment';
GO
