tags: add index on is_deprecated.

This commit is contained in:
evazion
2022-04-10 00:07:15 -05:00
parent e37f3e6538
commit 90b800ced7
2 changed files with 16 additions and 2 deletions

View File

@@ -1882,7 +1882,8 @@ CREATE TABLE public.tags (
category integer DEFAULT 0 NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
is_locked boolean DEFAULT false NOT NULL
is_locked boolean DEFAULT false NOT NULL,
is_deprecated boolean DEFAULT false NOT NULL
);
@@ -4505,6 +4506,13 @@ CREATE INDEX index_tag_implications_on_consequent_name ON public.tag_implication
CREATE INDEX index_tag_implications_on_forum_post_id ON public.tag_implications USING btree (forum_post_id);
--
-- Name: index_tags_on_is_deprecated; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX index_tags_on_is_deprecated ON public.tags USING btree (is_deprecated) WHERE (is_deprecated = true);
--
-- Name: index_tags_on_name; Type: INDEX; Schema: public; Owner: -
--
@@ -5797,6 +5805,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20220318082614'),
('20220403042706'),
('20220403220558'),
('20220407203236');
('20220407203236'),
('20220410050628');