From c2409bbfef0d1481801d0d7fb8af01f150bcff28 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Fri, 7 Feb 2020 15:30:15 +0100 Subject: [PATCH] Update structure.sql [SCI-4330] --- db/structure.sql | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/db/structure.sql b/db/structure.sql index 9a92689f1..214a328b4 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -3987,6 +3987,13 @@ CREATE UNIQUE INDEX index_active_storage_blobs_on_key ON public.active_storage_b CREATE INDEX index_activities_on_created_at ON public.activities USING btree (created_at); +-- +-- Name: index_activities_on_created_at_and_team_id_and_no_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_activities_on_created_at_and_team_id_and_no_project_id ON public.activities USING btree (created_at DESC, team_id) WHERE (project_id IS NULL); + + -- -- Name: index_activities_on_experiment_id; Type: INDEX; Schema: public; Owner: - -- @@ -7159,6 +7166,7 @@ INSERT INTO "schema_migrations" (version) VALUES ('20191206105058'), ('20191210103004'), ('20191218072619'), -('20200113143828'); +('20200113143828'), +('20200204100934');