mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-01-24 10:55:56 +00:00
4120c2fc2f
* get_random_community_id: add filters for nsfw and private, use algorithm that doesn't scan the entire table * only call random_smallint once for filter * change migration date * make random_smallint function work in postgresql 16 * replace "32768 + 32767 + 1" with "65536" and improve comments --------- Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
5 lines
86 B
SQL
5 lines
86 B
SQL
ALTER TABLE community
|
|
DROP COLUMN random_number;
|
|
|
|
DROP FUNCTION random_smallint;
|
|
|