add note table user_id, created_at index for non-anonymus notes

This commit is contained in:
Emin Kocan 2025-03-07 05:07:54 +01:00
parent 227894193d
commit 039c8db13c
3 changed files with 23 additions and 4 deletions

View file

@ -9,6 +9,7 @@ SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
--
-- Name: btree_gist; Type: EXTENSION; Schema: -; Owner: -
--
@ -2554,6 +2555,13 @@ CREATE INDEX index_note_subscriptions_on_note_id ON public.note_subscriptions US
CREATE INDEX index_notes_on_description ON public.notes USING gin (to_tsvector('english'::regconfig, description));
--
-- Name: index_notes_on_user_id_and_created_at; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX index_notes_on_user_id_and_created_at ON public.notes USING btree (user_id, created_at) WHERE (user_id IS NOT NULL);
--
-- Name: index_oauth_access_grants_on_application_id; Type: INDEX; Schema: public; Owner: -
--
@ -3436,6 +3444,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('23'),
('22'),
('21'),
('20250304172798'),
('20250304172758'),
('20250212160355'),
('20250206202905'),