@@ -9,7 +9,7 @@ CREATE TABLE `ApiKeys` (
9
9
`app_callback` varchar(255) DEFAULT "",
10
10
`created` int(11) unsigned NOT NULL,
11
11
`created_by` int(11) unsigned DEFAULT 0,
12
- `expires` int(11) unsigned NOT NULL ,
12
+ `expires` int(11) unsigned DEFAULT 0 ,
13
13
`app_title` varchar(255) NOT NULL,
14
14
`app_description` text,
15
15
`deleted` int(11) unsigned DEFAULT 0,
@@ -28,13 +28,13 @@ CREATE TABLE `OAuth2AccessTokens` (
28
28
`id` bigint(20) unsigned NOT NULL,
29
29
`user_id` int(11) unsigned NOT NULL,
30
30
`api_key_id` bigint(20) unsigned NOT NULL,
31
- `api_key_role_id` tinyint(3) unsigned NOT NULL ,
31
+ `api_key_role_id` tinyint(3) unsigned DEFAULT 0 ,
32
32
`access_token` varchar(64) NOT NULL,
33
33
`created` int(11) unsigned NOT NULL,
34
34
`perms` tinyint(3) unsigned NOT NULL,
35
35
`access_token_secret` varchar(64) DEFAULT "",
36
36
`last_modified` int(11) unsigned NOT NULL,
37
- `expires` int(11) unsigned NOT NULL ,
37
+ `expires` int(11) unsigned DEFAULT 0 ,
38
38
`disabled` int(11) unsigned DEFAULT 0,
39
39
PRIMARY KEY (`id`),
40
40
KEY `by_api_key` (`api_key_id`,`expires`,`created`),
0 commit comments