lemmy/migrations/2021-01-27-202728_active_users_monthly/down.sql
Dessalines 0fd0279543
Adding some recurring lemmy tasks. (#1386)
* Adding some recurring lemmy tasks.

- Add active users by day, week, month, and half year to site and
  community. Fixes #1195
- Periodically re-index the aggregates tables that use hot_rank.
  Fixes #1384
- Clear out old activities (> 6 months). Fixes #1133

* Some cleanup, recalculating actives every hour.
2021-01-29 11:38:27 -05:00

15 lines
440 B
SQL

alter table site_aggregates
drop column users_active_day,
drop column users_active_week,
drop column users_active_month,
drop column users_active_half_year;
alter table community_aggregates
drop column users_active_day,
drop column users_active_week,
drop column users_active_month,
drop column users_active_half_year;
drop function site_aggregates_activity(i text);
drop function community_aggregates_activity(i text);