﻿PRINT N'Altering Table [dbo].[T_ALKALMAZOTT]...';


GO
ALTER TABLE [dbo].[T_ALKALMAZOTT]
    ADD [C_FELTARELFOGADASDATUMA] DATETIME NULL,
        [C_ISFELTARELFOGADOTT]    CHAR (1) DEFAULT ('F') NOT NULL;


GO
PRINT N'Altering Table [dbo].[T_GONDVISELO]...';


GO
ALTER TABLE [dbo].[T_GONDVISELO]
    ADD [C_FELTARELFOGADASDATUMA] DATETIME NULL,
        [C_ISFELTARELFOGADOTT]    CHAR (1) DEFAULT ('F') NOT NULL;


GO

EXECUTE dev.uspCreateSchemaViews 'T_ALKALMAZOTT, T_GONDVISELO'
EXECUTE dev.sp_Global_GenerateAsyncAuditTriggerAll
GO

ALTER QUEUE auditLog.[AuditQueue]
WITH ACTIVATION 
(
  STATUS =  ON,
  PROCEDURE_NAME =  auditLog.usp_AuditProcessing,
  MAX_QUEUE_READERS =  2,
  EXECUTE AS 'Kreta_tech_user'
);
GO

PRINT N'Update complete.';

GO