db: drop tag subscriptions table.

This commit is contained in:
evazion
2019-11-17 01:52:36 -06:00
parent fedb525305
commit 1ae971269c
2 changed files with 9 additions and 67 deletions

View File

@@ -0,0 +1,7 @@
require_relative "20100307073438_create_tag_subscriptions"
class DropTagSubscriptions < ActiveRecord::Migration[6.0]
def change
revert CreateTagSubscriptions
end
end

View File

@@ -2988,43 +2988,6 @@ CREATE SEQUENCE public.tag_implications_id_seq
ALTER SEQUENCE public.tag_implications_id_seq OWNED BY public.tag_implications.id;
--
-- Name: tag_subscriptions; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.tag_subscriptions (
id integer NOT NULL,
creator_id integer NOT NULL,
name character varying NOT NULL,
tag_query text NOT NULL,
post_ids text NOT NULL,
is_public boolean DEFAULT true NOT NULL,
last_accessed_at timestamp without time zone,
is_opted_in boolean DEFAULT false NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
--
-- Name: tag_subscriptions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.tag_subscriptions_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: tag_subscriptions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.tag_subscriptions_id_seq OWNED BY public.tag_subscriptions.id;
--
-- Name: tags; Type: TABLE; Schema: public; Owner: -
--
@@ -4277,13 +4240,6 @@ ALTER TABLE ONLY public.tag_aliases ALTER COLUMN id SET DEFAULT nextval('public.
ALTER TABLE ONLY public.tag_implications ALTER COLUMN id SET DEFAULT nextval('public.tag_implications_id_seq'::regclass);
--
-- Name: tag_subscriptions id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.tag_subscriptions ALTER COLUMN id SET DEFAULT nextval('public.tag_subscriptions_id_seq'::regclass);
--
-- Name: tags id; Type: DEFAULT; Schema: public; Owner: -
--
@@ -4668,14 +4624,6 @@ ALTER TABLE ONLY public.tag_implications
ADD CONSTRAINT tag_implications_pkey PRIMARY KEY (id);
--
-- Name: tag_subscriptions tag_subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.tag_subscriptions
ADD CONSTRAINT tag_subscriptions_pkey PRIMARY KEY (id);
--
-- Name: tags tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -7056,20 +7004,6 @@ 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_tag_subscriptions_on_creator_id; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX index_tag_subscriptions_on_creator_id ON public.tag_subscriptions USING btree (creator_id);
--
-- Name: index_tag_subscriptions_on_name; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX index_tag_subscriptions_on_name ON public.tag_subscriptions USING btree (name);
--
-- Name: index_tags_on_name; Type: INDEX; Schema: public; Owner: -
--
@@ -7549,6 +7483,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20191111024520'),
('20191116001441'),
('20191116021759'),
('20191116224228');
('20191116224228'),
('20191117074642');