diff --git a/apps/oauth2/lib/Db/AccessToken.php b/apps/oauth2/lib/Db/AccessToken.php index 2027371892588..a568232a2e056 100644 --- a/apps/oauth2/lib/Db/AccessToken.php +++ b/apps/oauth2/lib/Db/AccessToken.php @@ -40,11 +40,10 @@ class AccessToken extends Entity { protected $tokenCount; public function __construct() { - $this->addType('id', Types::INTEGER); $this->addType('tokenId', Types::INTEGER); $this->addType('clientId', Types::INTEGER); - $this->addType('hashedCode', 'string'); - $this->addType('encryptedToken', 'string'); + $this->addType('hashedCode', Types::STRING); + $this->addType('encryptedToken', Types::STRING); $this->addType('codeCreatedAt', Types::INTEGER); $this->addType('tokenCount', Types::INTEGER); } diff --git a/apps/oauth2/lib/Db/Client.php b/apps/oauth2/lib/Db/Client.php index b121951993cd4..b53bcab28c241 100644 --- a/apps/oauth2/lib/Db/Client.php +++ b/apps/oauth2/lib/Db/Client.php @@ -32,10 +32,9 @@ class Client extends Entity { protected $secret; public function __construct() { - $this->addType('id', Types::INTEGER); - $this->addType('name', 'string'); - $this->addType('redirectUri', 'string'); - $this->addType('clientIdentifier', 'string'); - $this->addType('secret', 'string'); + $this->addType('name', Types::STRING); + $this->addType('redirectUri', Types::STRING); + $this->addType('clientIdentifier', Types::STRING); + $this->addType('secret', Types::STRING); } }