SONAR-4895 Update migration to only disabled deprecated function and add root_id in characteristics table
SONAR-4892 Fix NPE when searching for characteristic