IF NOT EXISTS (
    SELECT * 
    FROM sys.columns 
    WHERE object_id = OBJECT_ID('cf_site') 
    AND name = 'mobile_license'
)

BEGIN
    ALTER TABLE cf_site
    ADD mobile_license numeric(9) NULL
END
GO

update cf_site set mobile_license = 0 where mobile_license is null