mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-05 02:31:21 +00:00
0fd0279543
* 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.
14 lines
440 B
SQL
14 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);
|