lemmy/migrations/2023-06-06-104440_index_post_url/down.sql
Dessalines 8cb5939f50
Adding hot_rank columns in place of function sorting. (#2952)
* Adding hot_rank columns in place of function sorting.

- Creates hot_rank columns for post, comment, and community.
- Fixes #2932

* Updating all hot ranks on startup.

* Fixing post.url migration.

* Removing update_instance_software from startup.

* Adding post_rank query
2023-06-08 16:15:15 -04:00

6 lines
120 B
SQL

-- Change back the column type
alter table post alter column url type text;
-- Drop the index
drop index idx_post_url;