Skip to content

Commit 92ca355

Browse files
committed
fix: do not declare the id column type in the oauth2 app
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent 6fd76bf commit 92ca355

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

apps/oauth2/lib/Db/AccessToken.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@ class AccessToken extends Entity {
3838
protected $tokenCount;
3939

4040
public function __construct() {
41-
$this->addType('id', Types::INTEGER);
4241
$this->addType('tokenId', Types::INTEGER);
4342
$this->addType('clientId', Types::INTEGER);
44-
$this->addType('hashedCode', 'string');
45-
$this->addType('encryptedToken', 'string');
43+
$this->addType('hashedCode', Types::STRING);
44+
$this->addType('encryptedToken', Types::STRING);
4645
$this->addType('codeCreatedAt', Types::INTEGER);
4746
$this->addType('tokenCount', Types::INTEGER);
4847
}

apps/oauth2/lib/Db/Client.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ class Client extends Entity {
3030
protected $secret;
3131

3232
public function __construct() {
33-
$this->addType('id', Types::INTEGER);
34-
$this->addType('name', 'string');
35-
$this->addType('redirectUri', 'string');
36-
$this->addType('clientIdentifier', 'string');
37-
$this->addType('secret', 'string');
33+
$this->addType('name', Types::STRING);
34+
$this->addType('redirectUri', Types::STRING);
35+
$this->addType('clientIdentifier', Types::STRING);
36+
$this->addType('secret', Types::STRING);
3837
}
3938
}

0 commit comments

Comments
 (0)