﻿--Migration
SET IDENTITY_INSERT [T_CONFIGTIPUS] ON
---------------------------------------
INSERT INTO T_CONFIGTIPUS ([ID], [C_CONFIG], [C_MODUL], [TOROLT], [SERIAL], [LASTCHANGED], [CREATED], [MODIFIER], [CREATOR], [ELOZOTANEVIREKORDID])
VALUES
  (31, 'Url', 'FeltarASZFGondviselo', 'F', 0, GETDATE(), GETDATE(), 0, 0, NULL)

---------------------------------------
SET IDENTITY_INSERT [T_CONFIGTIPUS] OFF
DECLARE @feltarASZFGondviseloUrl nvarchar(255) = 'https://tudasbazis.ekreta.hu/'

INSERT INTO T_INTEZMENYCONFIG ([C_ERTEK], [C_CONFIGTIPUSID], [C_INTEZMENYID], [TOROLT], [SERIAL], [LASTCHANGED], [CREATED], [MODIFIER], [CREATOR], [ELOZOTANEVIREKORDID])
	SELECT @feltarASZFGondviseloUrl, 31, i.ID, 'F', 0, GETDATE(), GETDATE(), 0, 0, NULL FROM T_INTEZMENY i WHERE i.TOROLT = 'F'