diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-10-18 19:05:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-18 19:05:08 +0200 |
commit | 2ef74b986058928fd59af0c839b463d101d35146 (patch) | |
tree | 259e786dd3e7c24685b83fe65979210ca4dfc5fa /lib/private/Authentication | |
parent | 7e99fd31eaef82abbed6d53de27de75752faf67a (diff) | |
parent | 0e54c2bd43853891deac92f4ef9842c40ca64feb (diff) | |
download | nextcloud-server-2ef74b986058928fd59af0c839b463d101d35146.tar.gz nextcloud-server-2ef74b986058928fd59af0c839b463d101d35146.zip |
Merge pull request #47329 from nextcloud/feat/add-datetime-qbmapper-support
feat(AppFramework): Add full support for date / time / datetime columns
Diffstat (limited to 'lib/private/Authentication')
-rw-r--r-- | lib/private/Authentication/Token/PublicKeyToken.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/private/Authentication/Token/PublicKeyToken.php b/lib/private/Authentication/Token/PublicKeyToken.php index 961b7191d84..be427ab4839 100644 --- a/lib/private/Authentication/Token/PublicKeyToken.php +++ b/lib/private/Authentication/Token/PublicKeyToken.php @@ -10,6 +10,7 @@ namespace OC\Authentication\Token; use OCP\AppFramework\Db\Entity; use OCP\Authentication\Token\IToken; +use OCP\DB\Types; /** * @method void setId(int $id) @@ -88,16 +89,16 @@ class PublicKeyToken extends Entity implements INamedToken, IWipeableToken { $this->addType('passwordHash', 'string'); $this->addType('name', 'string'); $this->addType('token', 'string'); - $this->addType('type', 'int'); - $this->addType('remember', 'int'); - $this->addType('lastActivity', 'int'); - $this->addType('lastCheck', 'int'); + $this->addType('type', Types::INTEGER); + $this->addType('remember', Types::INTEGER); + $this->addType('lastActivity', Types::INTEGER); + $this->addType('lastCheck', Types::INTEGER); $this->addType('scope', 'string'); - $this->addType('expires', 'int'); + $this->addType('expires', Types::INTEGER); $this->addType('publicKey', 'string'); $this->addType('privateKey', 'string'); - $this->addType('version', 'int'); - $this->addType('passwordInvalid', 'bool'); + $this->addType('version', Types::INTEGER); + $this->addType('passwordInvalid', Types::BOOLEAN); } public function getId(): int { |