[open-ils-commits] r18628 - branches/rel_1_6/Open-ILS/src/sql/Pg (gmc)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Nov 5 13:12:55 EDT 2010


Author: gmc
Date: 2010-11-05 13:12:51 -0400 (Fri, 05 Nov 2010)
New Revision: 18628

Modified:
   branches/rel_1_6/Open-ILS/src/sql/Pg/005.schema.actors.sql
Log:
fix user password reset request time column def

Needs to be a timestamp with time zone; fixes a bug
where it was interpreted as a UTC time, throwing off
the calculation of the expiration of the password reset
request.

Signed-off-by: Galen Charlton <gmc at esilibrary.com>


Modified: branches/rel_1_6/Open-ILS/src/sql/Pg/005.schema.actors.sql
===================================================================
--- branches/rel_1_6/Open-ILS/src/sql/Pg/005.schema.actors.sql	2010-11-05 17:06:33 UTC (rev 18627)
+++ branches/rel_1_6/Open-ILS/src/sql/Pg/005.schema.actors.sql	2010-11-05 17:12:51 UTC (rev 18628)
@@ -528,7 +528,7 @@
   id SERIAL PRIMARY KEY,
   uuid TEXT NOT NULL, 
   usr BIGINT NOT NULL REFERENCES actor.usr(id) DEFERRABLE INITIALLY DEFERRED, 
-  request_time TIMESTAMP NOT NULL DEFAULT NOW(), 
+  request_time TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), 
   has_been_reset BOOL NOT NULL DEFAULT false
 );
 COMMENT ON TABLE actor.usr_password_reset IS $$



More information about the open-ils-commits mailing list