     cforum.counter_table (table_name, difference, group_crit)
   VALUES
     (TG_TABLE_NAME, +1, NEW.forum_id);
-
-  RETURN NULL;
-END;
-$$;
-
-
---
--- Name: count_threads_truncate_forum_trigger(); Type: FUNCTION; Schema: cforum; Owner: -
---
-
-CREATE FUNCTION count_threads_truncate_forum_trigger() RETURNS trigger
-    LANGUAGE plpgsql
-    AS $$
-BEGIN
-  DELETE FROM
-    cforum.counter_table
-  WHERE
-    table_name = 'threads';
 
   RETURN NULL;
 END;


INSERT INTO schema_migrations (version) VALUES ('14');

INSERT INTO schema_migrations (version) VALUES ('2');

INSERT INTO schema_migrations (version) VALUES ('3');

      RAISE NOTICE 'table_count: summing counter';

      FOR v_cur_id, v_cur_difference IN
        SELECT count_id, difference
        FROM
          cforum.counter_table
        WHERE
