From: Michael Tremer Date: Wed, 1 Nov 2017 17:37:10 +0000 (+0000) Subject: db: Add fields to store password recovery tokens X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b4010c2ed6826a02b32617ed99c9898c15480c0;p=pbs.git db: Add fields to store password recovery tokens Signed-off-by: Michael Tremer --- diff --git a/src/database.sql b/src/database.sql index dd6d0b9d..f3df609d 100644 --- a/src/database.sql +++ b/src/database.sql @@ -1630,7 +1630,9 @@ CREATE TABLE users ( activated boolean DEFAULT false NOT NULL, deleted boolean DEFAULT false NOT NULL, registered timestamp without time zone DEFAULT now() NOT NULL, - ldap_dn text + ldap_dn text, + password_recovery_code text, + password_recovery_code_expires_at timestamp without time zone ); @@ -2282,6 +2284,14 @@ ALTER TABLE ONLY sessions ADD CONSTRAINT sessions_session_id_key UNIQUE (session_id); +-- +-- Name: users_password_recovery_code; Type: CONSTRAINT; Schema: public; Owner: pakfire; Tablespace: +-- + +ALTER TABLE ONLY users + ADD CONSTRAINT users_password_recovery_code UNIQUE (password_recovery_code); + + -- -- Name: arches_compat_native_arch; Type: INDEX; Schema: public; Owner: pakfire; Tablespace: --