add framework for post update pushes to pubsub

This commit is contained in:
r888888888
2016-08-19 17:51:47 -07:00
parent 5de9adf0f5
commit 3c42df51c9
5 changed files with 56 additions and 7 deletions

View File

@@ -2654,6 +2654,15 @@ CREATE SEQUENCE post_flags_id_seq
ALTER SEQUENCE post_flags_id_seq OWNED BY post_flags.id;
--
-- Name: post_updates; Type: TABLE; Schema: public; Owner: -
--
CREATE UNLOGGED TABLE post_updates (
post_id integer
);
--
-- Name: post_versions; Type: TABLE; Schema: public; Owner: -
--
@@ -4750,6 +4759,14 @@ ALTER TABLE ONLY transaction_log_items
ADD CONSTRAINT transaction_log_items_pkey PRIMARY KEY (id);
--
-- Name: unique_post_id; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY post_updates
ADD CONSTRAINT unique_post_id UNIQUE (post_id);
--
-- Name: uploads_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -7391,3 +7408,5 @@ INSERT INTO schema_migrations (version) VALUES ('20160222211328');
INSERT INTO schema_migrations (version) VALUES ('20160526174848');
INSERT INTO schema_migrations (version) VALUES ('20160820003534');