Skip to content

Commit 1689bee

Browse files
committed
🔧 more not null shenanigans
1 parent 3f4b171 commit 1689bee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

schema/db_main.schema

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ CREATE TABLE `ApiKeys` (
99
`app_callback` varchar(255) DEFAULT "",
1010
`created` int(11) unsigned NOT NULL,
1111
`created_by` int(11) unsigned DEFAULT 0,
12-
`expires` int(11) unsigned NOT NULL,
12+
`expires` int(11) unsigned DEFAULT 0,
1313
`app_title` varchar(255) NOT NULL,
1414
`app_description` text,
1515
`deleted` int(11) unsigned DEFAULT 0,
@@ -28,13 +28,13 @@ CREATE TABLE `OAuth2AccessTokens` (
2828
`id` bigint(20) unsigned NOT NULL,
2929
`user_id` int(11) unsigned NOT NULL,
3030
`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,
3232
`access_token` varchar(64) NOT NULL,
3333
`created` int(11) unsigned NOT NULL,
3434
`perms` tinyint(3) unsigned NOT NULL,
3535
`access_token_secret` varchar(64) DEFAULT "",
3636
`last_modified` int(11) unsigned NOT NULL,
37-
`expires` int(11) unsigned NOT NULL,
37+
`expires` int(11) unsigned DEFAULT 0,
3838
`disabled` int(11) unsigned DEFAULT 0,
3939
PRIMARY KEY (`id`),
4040
KEY `by_api_key` (`api_key_id`,`expires`,`created`),

0 commit comments

Comments
 (0)