IF NOT EXISTS(SELECT * FROM sys.columns WHERE object_id = OBJECT_ID(N'[dbo].[stammt]')
AND name = 'COCI_DISTANCE_TO_STATION')
ALTER TABLE stammt ADD COCI_DISTANCE_METERS_TO_STATION integer  NULL

IF NOT EXISTS(SELECT * FROM sys.columns WHERE object_id = OBJECT_ID(N'[dbo].[stammt]')
AND name = 'COCI_ONLY_WHEN_IN_RANGE')
ALTER TABLE stammt ADD COCI_ONLY_WHEN_IN_RANGE BIT  NULL