mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-23 06:58:52 +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.
15 lines
440 B
SQL
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);
|