﻿--Migration
PRINT N'Altering [dbo].[T_TANULO]...';


GO
ALTER TABLE [dbo].[T_TANULO]
    ADD [C_ISATLAGSZAKKEPZESI]        CHAR (1) DEFAULT ('T') NOT NULL,
        [C_ISBESZAMITASOSFIXSZAZALEK] CHAR (1) DEFAULT ('T') NOT NULL;


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


GO
ALTER TABLE [dbo].[T_TANULOTANUGYIADATOK]
    ADD [C_ISBESZAMITASOSFIXSZAZALEK] CHAR (1) DEFAULT ('T') NOT NULL;


GO
PRINT N'Update complete.';


GO


EXEC dev.uspCreateSchemaViews 'T_TANULO, T_TANULOTANUGYIADATOK'
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
