Fix MSSQL database upgrade for channels without tuning details (#4247)

This applies an alternate version of the parent commit to the MSSQL
script. Thanks to Guzzi for the fix.