added email verification methods to user
This commit is contained in:
@@ -1181,6 +1181,41 @@ CREATE SEQUENCE tag_implications_id_seq
|
||||
ALTER SEQUENCE tag_implications_id_seq OWNED BY tag_implications.id;
|
||||
|
||||
|
||||
--
|
||||
-- Name: tag_subscriptions; Type: TABLE; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
|
||||
CREATE TABLE tag_subscriptions (
|
||||
id integer NOT NULL,
|
||||
owner_id integer NOT NULL,
|
||||
name character varying(255) NOT NULL,
|
||||
tag_query character varying(255) NOT NULL,
|
||||
post_ids text NOT NULL,
|
||||
is_visible_on_profile boolean DEFAULT true 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 tag_subscriptions_id_seq
|
||||
START WITH 1
|
||||
INCREMENT BY 1
|
||||
NO MAXVALUE
|
||||
NO MINVALUE
|
||||
CACHE 1;
|
||||
|
||||
|
||||
--
|
||||
-- Name: tag_subscriptions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER SEQUENCE tag_subscriptions_id_seq OWNED BY tag_subscriptions.id;
|
||||
|
||||
|
||||
--
|
||||
-- Name: tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
@@ -1335,7 +1370,8 @@ CREATE TABLE users (
|
||||
name character varying(255) NOT NULL,
|
||||
password_hash character varying(255) NOT NULL,
|
||||
email character varying(255),
|
||||
invited_by integer,
|
||||
email_verification_key character varying(255),
|
||||
inviter_id integer,
|
||||
is_banned boolean DEFAULT false NOT NULL,
|
||||
is_privileged boolean DEFAULT false NOT NULL,
|
||||
is_contributor boolean DEFAULT false NOT NULL,
|
||||
@@ -1668,6 +1704,13 @@ ALTER TABLE tag_aliases ALTER COLUMN id SET DEFAULT nextval('tag_aliases_id_seq'
|
||||
ALTER TABLE tag_implications ALTER COLUMN id SET DEFAULT nextval('tag_implications_id_seq'::regclass);
|
||||
|
||||
|
||||
--
|
||||
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE tag_subscriptions ALTER COLUMN id SET DEFAULT nextval('tag_subscriptions_id_seq'::regclass);
|
||||
|
||||
|
||||
--
|
||||
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
||||
--
|
||||
@@ -1973,6 +2016,14 @@ ALTER TABLE ONLY tag_implications
|
||||
ADD CONSTRAINT tag_implications_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: tag_subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY tag_subscriptions
|
||||
ADD CONSTRAINT tag_subscriptions_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
@@ -2533,6 +2584,20 @@ CREATE INDEX index_tag_implications_on_antecedent_name ON tag_implications USING
|
||||
CREATE INDEX index_tag_implications_on_consequent_name ON tag_implications USING btree (consequent_name);
|
||||
|
||||
|
||||
--
|
||||
-- Name: index_tag_subscriptions_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
|
||||
CREATE INDEX index_tag_subscriptions_on_name ON tag_subscriptions USING btree (name);
|
||||
|
||||
|
||||
--
|
||||
-- Name: index_tag_subscriptions_on_owner_id; Type: INDEX; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
|
||||
CREATE INDEX index_tag_subscriptions_on_owner_id ON tag_subscriptions USING btree (owner_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: index_tags_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace:
|
||||
--
|
||||
@@ -2736,4 +2801,6 @@ INSERT INTO schema_migrations (version) VALUES ('20100223001012');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20100224171915');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20100224172146');
|
||||
INSERT INTO schema_migrations (version) VALUES ('20100224172146');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20100307073438');
|
||||
Reference in New Issue
Block a user