From 5d012c6cf442d7631f0559372c283ddf9480d710 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Wed, 25 Jul 2012 14:29:04 +0100 Subject: [PATCH] Added access_token_expires column to oauth_sessions table --- src/sql/database.sql | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/sql/database.sql b/src/sql/database.sql index 69454b7a..0c218795 100644 --- a/src/sql/database.sql +++ b/src/sql/database.sql @@ -20,13 +20,14 @@ CREATE TABLE `client_endpoints` ( -- Create syntax for TABLE 'oauth_sessions' CREATE TABLE `oauth_sessions` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, - `client_id` varchar(32) CHARACTER SET latin1 NOT NULL DEFAULT '', - `redirect_uri` varchar(250) CHARACTER SET latin1 NOT NULL DEFAULT '', - `owner_type` enum('user','client') CHARACTER SET latin1 NOT NULL DEFAULT 'user', - `owner_id` varchar(255) CHARACTER SET latin1 DEFAULT NULL, - `auth_code` varchar(40) CHARACTER SET latin1 DEFAULT '', - `access_token` varchar(40) CHARACTER SET latin1 DEFAULT '', - `stage` enum('requested','granted') CHARACTER SET latin1 NOT NULL DEFAULT 'requested', + `client_id` varchar(32) NOT NULL DEFAULT '', + `redirect_uri` varchar(250) NOT NULL DEFAULT '', + `owner_type` enum('user','client') NOT NULL DEFAULT 'user', + `owner_id` varchar(255) DEFAULT NULL, + `auth_code` varchar(40) DEFAULT '', + `access_token` varchar(40) DEFAULT '', + `access_token_expires` int(10) DEFAULT NULL, + `stage` enum('requested','granted') NOT NULL DEFAULT 'requested', `first_requested` int(10) unsigned NOT NULL, `last_updated` int(10) unsigned NOT NULL, PRIMARY KEY (`id`),