Skip to content

Commit e13d669

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 8c01737 commit e13d669

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
@@ -40,11 +40,10 @@ class AccessToken extends Entity {
4040
protected $tokenCount;
4141

4242
public function __construct() {
43-
$this->addType('id', Types::INTEGER);
4443
$this->addType('tokenId', Types::INTEGER);
4544
$this->addType('clientId', Types::INTEGER);
46-
$this->addType('hashedCode', 'string');
47-
$this->addType('encryptedToken', 'string');
45+
$this->addType('hashedCode', Types::STRING);
46+
$this->addType('encryptedToken', Types::STRING);
4847
$this->addType('codeCreatedAt', Types::INTEGER);
4948
$this->addType('tokenCount', Types::INTEGER);
5049
}

apps/oauth2/lib/Db/Client.php

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

3434
public function __construct() {
35-
$this->addType('id', Types::INTEGER);
36-
$this->addType('name', 'string');
37-
$this->addType('redirectUri', 'string');
38-
$this->addType('clientIdentifier', 'string');
39-
$this->addType('secret', 'string');
35+
$this->addType('name', Types::STRING);
36+
$this->addType('redirectUri', Types::STRING);
37+
$this->addType('clientIdentifier', Types::STRING);
38+
$this->addType('secret', Types::STRING);
4039
}
4140
}

0 commit comments

Comments
 (0)