summaryrefslogtreecommitdiff
path: root/db/08to09_pg.sql
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-12-05 21:03:27 -0500
committerCraig Andrews <candrews@integralblue.com>2009-12-05 21:05:33 -0500
commit75cac0fd6b94f77ec8ff32ebc89ec513ee102831 (patch)
treeb84a71e22ee7d0437895cf8676730b42eb0c02ff /db/08to09_pg.sql
parentcb2966a64c618a90b84c7aac63e5193c054be3aa (diff)
Added 'login' command that gives you a link that can be used to login to the website
Diffstat (limited to 'db/08to09_pg.sql')
-rw-r--r--db/08to09_pg.sql10
1 files changed, 9 insertions, 1 deletions
diff --git a/db/08to09_pg.sql b/db/08to09_pg.sql
index b312d47dd..0bd47dea5 100644
--- a/db/08to09_pg.sql
+++ b/db/08to09_pg.sql
@@ -39,6 +39,15 @@ create table profile_role (
);
+create table login_token (
+ user_id integer not null /* comment 'user owning this token'*/ references "user" (id),
+ token char(32) not null /* comment 'token useable for logging in'*/,
+ created timestamp not null DEFAULT CURRENT_TIMESTAMP /* comment 'date this record was created'*/,
+ modified timestamp /* comment 'date this record was modified'*/,
+
+ primary key (user_id)
+);
+
DROP index fave_user_id_idx;
CREATE index fave_user_id_idx on fave (user_id,modified);
@@ -60,4 +69,3 @@ ALTER TABLE profile ADD COLUMN lat decimal(10,7) /*comment 'latitude'*/ ;
ALTER TABLE profile ADD COLUMN lon decimal(10,7) /*comment 'longitude'*/;
ALTER TABLE profile ADD COLUMN location_id integer /* comment 'location id if possible'*/;
ALTER TABLE profile ADD COLUMN location_ns integer /* comment 'namespace for location'*/;
- \ No newline at end of file