mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-09-02 11:13:51 +00:00
* [0.19] Fixing active counts slow queries. (#5907) * Fixing active counts slow queries. * Simplify back to str tuple * Batch site and community updates * Using update from temp table * Making aggs temp table use interval name. * Make dev setup use optimized postgres. * Addressing PR comments. * Use ref * Removing system custom info from customPostgresql.conf * Forgot to remove old scheduled tasks. * Making sure migrations aren't missing anything from release/v0.19 Checked using git diff --diff-filter D --stat release/v0.19 migrations * Rename all migrations to come after release/v0.19 migrations * Add liked_at is not null check.
16 lines
546 B
SQL
16 lines
546 B
SQL
ALTER TABLE mod_ban RENAME TO admin_ban;
|
|
|
|
ALTER TABLE mod_add RENAME TO admin_add;
|
|
|
|
ALTER TABLE mod_remove_community RENAME TO admin_remove_community;
|
|
|
|
ALTER TABLE mod_add_community RENAME TO mod_add_to_community;
|
|
|
|
ALTER TABLE modlog_combined RENAME COLUMN mod_ban_id TO admin_ban_id;
|
|
|
|
ALTER TABLE modlog_combined RENAME COLUMN mod_add_id TO admin_add_id;
|
|
|
|
ALTER TABLE modlog_combined RENAME COLUMN mod_remove_community_id TO admin_remove_community_id;
|
|
|
|
ALTER TABLE modlog_combined RENAME COLUMN mod_add_community_id TO mod_add_to_community_id;
|
|
|