﻿GO
SET ANSI_NULLS, ANSI_PADDING, ANSI_WARNINGS, ARITHABORT, CONCAT_NULL_YIELDS_NULL, QUOTED_IDENTIFIER ON;

SET NUMERIC_ROUNDABORT OFF;



GO
PRINT N'Altering [dbo].[T_TANTARGY]...';


GO
ALTER TABLE [dbo].[T_TANTARGY]
    ADD [C_ISAMITARGY]                   CHAR (1) DEFAULT ('F') NOT NULL,
        [C_ISEGYMITARGY]                 CHAR (1) DEFAULT ('F') NOT NULL,
        [C_ISFELNOTTOKTATASTARGY]        CHAR (1) DEFAULT ('F') NOT NULL,
        [C_ISKOLLEGIUMTARGY]             CHAR (1) DEFAULT ('F') NOT NULL,
        [C_ISNINCSBELOLEORA]             CHAR (1) DEFAULT ('T') NOT NULL,
        [C_ISOSZTALYNAPLOBANMEGJELENIK]  CHAR (1) DEFAULT ('T') NOT NULL,
        [C_ISOSZTALYORARENDBEMEGJELENIK] CHAR (1) DEFAULT ('T') NOT NULL,
        [C_ISOSZTALYZATTALERTEKELHETO]   CHAR (1) DEFAULT ('T') NOT NULL,
        [C_ISTANULMANYIATLAGBASZAMIT]    CHAR (1) DEFAULT ('T') NOT NULL,
        [C_ISSZAZALEKOSANERTEKELHETO]    CHAR (1) DEFAULT ('T') NOT NULL,
        [C_ISSZOVEGESENERTEKELHETO]      CHAR (1) DEFAULT ('T') NOT NULL;


GO
PRINT N'Update complete.';


GO
EXEC dev.uspCreateSchemaViews 'T_TANTARGY';
GO




EXEC dev.sp_Global_GenerateAsyncAuditTriggerAll
GO

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

GO
