From: c-andy-candies <74613851+c-andy-candies@users.noreply.github.com> Date: Wed, 28 Jun 2023 16:44:16 +0000 (+0200) Subject: Fix missing sorting types (#3370) X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/nerdica.net/README.md?a=commitdiff_plain;h=ffc049078e834f1a74b20307014f29fca3f8459a;p=lemmy.git Fix missing sorting types (#3370) * Fix missing sorting types * Reordered sort_type_enum --- diff --git a/migrations/2023-06-20-191145_add_listingtype_sorttype_3_6_9_months_enums/down.sql b/migrations/2023-06-20-191145_add_listingtype_sorttype_3_6_9_months_enums/down.sql index f8493fd2..5b135223 100644 --- a/migrations/2023-06-20-191145_add_listingtype_sorttype_3_6_9_months_enums/down.sql +++ b/migrations/2023-06-20-191145_add_listingtype_sorttype_3_6_9_months_enums/down.sql @@ -4,7 +4,7 @@ update local_user set default_sort_type = 'TopDay' where default_sort_type in (' -- rename the old enum alter type sort_type_enum rename to sort_type_enum__; -- create the new enum -CREATE TYPE sort_type_enum AS ENUM ('Active', 'Hot', 'New', 'Old', 'TopDay', 'TopWeek', 'TopMonth', 'TopYear', 'TopAll', 'MostComments', 'NewComments'); +CREATE TYPE sort_type_enum AS ENUM ('Active', 'Hot', 'New', 'Old', 'TopDay', 'TopWeek', 'TopMonth', 'TopYear', 'TopAll', 'MostComments', 'NewComments', 'TopHour', 'TopSixHour', 'TopTwelveHour'); -- alter all you enum columns alter table local_user