diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-09-19 15:46:20 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-10-17 18:31:44 +0200 |
commit | 0e54c2bd43853891deac92f4ef9842c40ca64feb (patch) | |
tree | d27fe3a2bb368dc80c3f21709f5d15ed9ac03280 /apps/oauth2 | |
parent | db94e10af0928f35b74c22f9370df1cb3ea1160f (diff) | |
download | nextcloud-server-0e54c2bd43853891deac92f4ef9842c40ca64feb.tar.gz nextcloud-server-0e54c2bd43853891deac92f4ef9842c40ca64feb.zip |
fix: Adjust Entity typesfeat/add-datetime-qbmapper-support
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/oauth2')
-rw-r--r-- | apps/oauth2/lib/Db/AccessToken.php | 11 | ||||
-rw-r--r-- | apps/oauth2/lib/Db/Client.php | 3 |
2 files changed, 8 insertions, 6 deletions
diff --git a/apps/oauth2/lib/Db/AccessToken.php b/apps/oauth2/lib/Db/AccessToken.php index 543d512e0ce..f9c0e6de51e 100644 --- a/apps/oauth2/lib/Db/AccessToken.php +++ b/apps/oauth2/lib/Db/AccessToken.php @@ -6,6 +6,7 @@ namespace OCA\OAuth2\Db; use OCP\AppFramework\Db\Entity; +use OCP\DB\Types; /** * @method int getTokenId() @@ -36,12 +37,12 @@ class AccessToken extends Entity { protected $tokenCount; public function __construct() { - $this->addType('id', 'int'); - $this->addType('tokenId', 'int'); - $this->addType('clientId', 'int'); + $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('codeCreatedAt', 'int'); - $this->addType('tokenCount', 'int'); + $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 c48ca4edfc0..458d85b24ab 100644 --- a/apps/oauth2/lib/Db/Client.php +++ b/apps/oauth2/lib/Db/Client.php @@ -6,6 +6,7 @@ namespace OCA\OAuth2\Db; use OCP\AppFramework\Db\Entity; +use OCP\DB\Types; /** * @method string getClientIdentifier() @@ -28,7 +29,7 @@ class Client extends Entity { protected $secret; public function __construct() { - $this->addType('id', 'int'); + $this->addType('id', Types::INTEGER); $this->addType('name', 'string'); $this->addType('redirectUri', 'string'); $this->addType('clientIdentifier', 'string'); |