From 3616759b97b1ec5b73e24424251b4fad1d241c92 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Fri, 9 Jan 2026 11:15:24 +0100 Subject: [PATCH] fix: do not declare the id column type in the oauth2 app Signed-off-by: Julien Veyssier --- apps/oauth2/lib/Db/AccessToken.php | 5 ++--- apps/oauth2/lib/Db/Client.php | 9 ++++----- 2 files changed, 6 insertions(+), 8 deletions(-) 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); } }