Added access_token_expires column to oauth_sessions table

This commit is contained in:
Alex Bilbie 2012-07-25 14:29:04 +01:00
parent d25ef6bb89
commit 5d012c6cf4

View File

@ -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`),