Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b7ec032

Browse files
author
Dave Rochwerger
committed
* Client_id length -> 40 chars.
* Standardised large fields to 255 chars
1 parent b11aac3 commit b7ec032

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

server/examples/pdo/mysql_create_tables.sql

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,35 @@ SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
22

33
CREATE TABLE `auth_codes` (
44
`code` varchar(40) NOT NULL,
5-
`client_id` varchar(20) NOT NULL,
5+
`client_id` varchar(40) NOT NULL,
66
`user_id` int(11) UNSIGNED NOT NULL,
77
`redirect_uri` varchar(200) NOT NULL,
88
`expires` int(11) NOT NULL,
9-
`scope` varchar(250) DEFAULT NULL,
9+
`scope` varchar(255) DEFAULT NULL,
1010
PRIMARY KEY (`code`)
1111
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1212

1313
CREATE TABLE `clients` (
14-
`client_id` varchar(20) NOT NULL,
14+
`client_id` varchar(40) NOT NULL,
1515
`client_secret` varchar(20) NOT NULL,
16-
`redirect_uri` varchar(200) NOT NULL,
16+
`redirect_uri` varchar(255) NOT NULL,
1717
PRIMARY KEY (`client_id`)
1818
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
1919

2020
CREATE TABLE `access_tokens` (
2121
`oauth_token` varchar(40) NOT NULL,
22-
`client_id` varchar(20) NOT NULL,
22+
`client_id` varchar(40) NOT NULL,
2323
`user_id` int(11) UNSIGNED NOT NULL,
2424
`expires` int(11) NOT NULL,
25-
`scope` varchar(200) DEFAULT NULL,
25+
`scope` varchar(255) DEFAULT NULL,
2626
PRIMARY KEY (`oauth_token`)
2727
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
2828

2929
CREATE TABLE `refresh_tokens` (
3030
`refresh_token` varchar(40) NOT NULL,
31-
`client_id` varchar(20) NOT NULL,
31+
`client_id` varchar(40) NOT NULL,
3232
`user_id` int(11) UNSIGNED NOT NULL,
3333
`expires` int(11) NOT NULL,
34-
`scope` varchar(200) DEFAULT NULL,
34+
`scope` varchar(255) DEFAULT NULL,
3535
PRIMARY KEY (`refresh_token`)
3636
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

0 commit comments

Comments
 (0)