added news updates ui
This commit is contained in:
@@ -1983,6 +1983,39 @@ CREATE SEQUENCE mod_actions_id_seq
|
||||
ALTER SEQUENCE mod_actions_id_seq OWNED BY mod_actions.id;
|
||||
|
||||
|
||||
--
|
||||
-- Name: news_updates; Type: TABLE; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
|
||||
CREATE TABLE news_updates (
|
||||
id integer NOT NULL,
|
||||
message text NOT NULL,
|
||||
creator_id integer NOT NULL,
|
||||
updater_id integer NOT NULL,
|
||||
created_at timestamp without time zone,
|
||||
updated_at timestamp without time zone
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Name: news_updates_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE SEQUENCE news_updates_id_seq
|
||||
START WITH 1
|
||||
INCREMENT BY 1
|
||||
NO MINVALUE
|
||||
NO MAXVALUE
|
||||
CACHE 1;
|
||||
|
||||
|
||||
--
|
||||
-- Name: news_updates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER SEQUENCE news_updates_id_seq OWNED BY news_updates.id;
|
||||
|
||||
|
||||
--
|
||||
-- Name: note_versions; Type: TABLE; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
@@ -2870,6 +2903,13 @@ ALTER TABLE janitor_trials ALTER COLUMN id SET DEFAULT nextval('janitor_trials_i
|
||||
ALTER TABLE mod_actions ALTER COLUMN id SET DEFAULT nextval('mod_actions_id_seq'::regclass);
|
||||
|
||||
|
||||
--
|
||||
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE news_updates ALTER COLUMN id SET DEFAULT nextval('news_updates_id_seq'::regclass);
|
||||
|
||||
|
||||
--
|
||||
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
||||
--
|
||||
@@ -3146,6 +3186,14 @@ ALTER TABLE ONLY mod_actions
|
||||
ADD CONSTRAINT mod_actions_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: news_updates_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY news_updates
|
||||
ADD CONSTRAINT news_updates_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: note_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
@@ -4916,6 +4964,13 @@ CREATE UNIQUE INDEX index_ip_bans_on_ip_addr ON ip_bans USING btree (ip_addr);
|
||||
CREATE INDEX index_janitor_trials_on_user_id ON janitor_trials USING btree (user_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: index_news_updates_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
|
||||
CREATE INDEX index_news_updates_on_created_at ON news_updates USING btree (created_at);
|
||||
|
||||
|
||||
--
|
||||
-- Name: index_note_versions_on_note_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
@@ -5440,4 +5495,6 @@ INSERT INTO schema_migrations (version) VALUES ('20110717010705');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20110722211855');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20110815233456');
|
||||
INSERT INTO schema_migrations (version) VALUES ('20110815233456');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20111101212358');
|
||||
Reference in New Issue
Block a user