if not exists (select 1 from [dbo].[_columnas] where [tabla] = 'ort_reporteTecnico_falla' and [columna] = 'id_falla_causa')
begin
	INSERT INTO [dbo].[_columnas]
			   ([tabla]
			   ,[columna]
			   ,[mostrarEnGrilla]
			   ,[ordenGrilla]
			   ,[requerido]
			   ,[tipo]
			   ,[defecto]	
			   ,[tamano]
			   ,[dependiente]
			   ,[id_seccionAtributo]
			   ,[mostrarEnAPI]
			   ,[ordenEdicion])
		 VALUES
			   ('ort_reporteTecnico_falla', 'id_falla_causa', 1, 1, 0, 'int', '((0))', NULL, NULL, 0, 1, 1)
end
go

if not exists (select 1 from [dbo].[_columnas] where [tabla] = 'ort_reporteTecnico_falla' and [columna] = 'id_falla_efecto')
begin
	INSERT INTO [dbo].[_columnas]
			   ([tabla]
			   ,[columna]
			   ,[mostrarEnGrilla]
			   ,[ordenGrilla]
			   ,[requerido]
			   ,[tipo]
			   ,[defecto]	
			   ,[tamano]
			   ,[dependiente]
			   ,[id_seccionAtributo]
			   ,[mostrarEnAPI]
			   ,[ordenEdicion])
		 VALUES
			   ('ort_reporteTecnico_falla', 'id_falla_efecto', 1, 1, 0, 'int', '((0))', NULL, NULL, 0, 1, 1)
end
go
