-- This removes the trigger prevening ngrams deletion
-- because the function was not working.

DROP TRIGGER check_ngrams_json_trg ON ngrams;
DROP FUNCTION check_ngrams_json;