From ffc049078e834f1a74b20307014f29fca3f8459a Mon Sep 17 00:00:00 2001 From: c-andy-candies <74613851+c-andy-candies@users.noreply.github.com> Date: Wed, 28 Jun 2023 18:44:16 +0200 Subject: [PATCH] Fix missing sorting types (#3370) * Fix missing sorting types * Reordered sort_type_enum --- .../down.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f8493fd26..5b135223e 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