From 4dd8438e7c49b4811f7066ad59fd15050e2bfda5 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 13 Feb 2022 22:18:23 +0000 Subject: [PATCH] sneed --- schema.sql | 63 ++++++------------------------------------------------ 1 file changed, 7 insertions(+), 56 deletions(-) diff --git a/schema.sql b/schema.sql index 12cff6b2e..8e5837862 100644 --- a/schema.sql +++ b/schema.sql @@ -1612,20 +1612,6 @@ CREATE INDEX discord_id_idx ON public.users USING btree (discord_id); CREATE INDEX domains_domain_trgm_idx ON public.banneddomains USING gin (domain public.gin_trgm_ops); --- --- Name: fki_block_target_fkey; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX fki_block_target_fkey ON public.userblocks USING btree (target_id); - - --- --- Name: fki_block_user_fkey; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX fki_block_user_fkey ON public.userblocks USING btree (user_id); - - -- -- Name: fki_comment_approver_fkey; Type: INDEX; Schema: public; Owner: - -- @@ -1661,13 +1647,6 @@ CREATE INDEX fki_modactions_user_fkey ON public.modactions USING btree (target_u CREATE INDEX fki_submissions_approver_fkey ON public.submissions USING btree (is_approved); --- --- Name: fki_submissions_author_fkey; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX fki_submissions_author_fkey ON public.submissions USING btree (author_id); - - -- -- Name: fki_subscription_submission_fkey; Type: INDEX; Schema: public; Owner: - -- @@ -1675,13 +1654,6 @@ CREATE INDEX fki_submissions_author_fkey ON public.submissions USING btree (auth CREATE INDEX fki_subscription_submission_fkey ON public.subscriptions USING btree (submission_id); --- --- Name: fki_subscription_user_fkey; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX fki_subscription_user_fkey ON public.subscriptions USING btree (user_id); - - -- -- Name: fki_user_referrer_fkey; Type: INDEX; Schema: public; Owner: - -- @@ -1815,13 +1787,6 @@ CREATE INDEX notifications_user_index ON public.notifications USING btree (user_ CREATE INDEX notifs_user_read_idx ON public.notifications USING btree (user_id, read); --- --- Name: post_18_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX post_18_index ON public.submissions USING btree (over_18); - - -- -- Name: post_app_id_idx; Type: INDEX; Schema: public; Owner: - -- @@ -1829,20 +1794,6 @@ CREATE INDEX post_18_index ON public.submissions USING btree (over_18); CREATE INDEX post_app_id_idx ON public.submissions USING btree (app_id); --- --- Name: post_author_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX post_author_index ON public.submissions USING btree (author_id); - - --- --- Name: sub_user_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX sub_user_index ON public.subscriptions USING btree (user_id); - - -- -- Name: subimssion_binary_group_idx; Type: INDEX; Schema: public; Owner: - -- @@ -1885,6 +1836,13 @@ CREATE INDEX submission_pinned_idx ON public.submissions USING btree (is_pinned) CREATE INDEX submissions_author_index ON public.submissions USING btree (author_id); +-- +-- Name: submissions_created_utc_asc_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX submissions_created_utc_asc_idx ON public.submissions USING btree (created_utc NULLS FIRST); + + -- -- Name: submissions_created_utc_desc_idx; Type: INDEX; Schema: public; Owner: - -- @@ -1920,13 +1878,6 @@ CREATE INDEX subscription_user_index ON public.subscriptions USING btree (user_i CREATE INDEX user_banned_idx ON public.users USING btree (is_banned); --- --- Name: user_privacy_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX user_privacy_idx ON public.users USING btree (is_private); - - -- -- Name: user_private_idx; Type: INDEX; Schema: public; Owner: - --