-- We check for ChannelTypes = '0,0,0,0,0,0' because that's the case where a SLICE6Air -- has not already been rediscovered in 4.0 (which would result in '0,0,0,0,0,0,5,6'). INSERT INTO [dbo].[DASChannels] ([DASId], [ChannelIdx], [SupportedBridges], [SupportedExcitations], [DASDisplayOrder], [LocalOnly], [SupportedDigitalInputModes], [SupportedSquibFireModes], [SupportedDigitalOutputModes], [ModuleSerialNumber], [ModuleArrayIndex]) (SELECT DASId, 6, 512, 1, -1, 0, 0, 0, 0, 'S6A-Uart1', 2 FROM [dbo].[DAS] WHERE Type = '36' AND Position <> 'Prototype' AND ChannelTypes = '0,0,0,0,0,0' GROUP BY DASId)