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 /core | |
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 'core')
-rw-r--r-- | core/Db/LoginFlowV2.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Db/LoginFlowV2.php b/core/Db/LoginFlowV2.php index 90b6f41a626..1671e5990e0 100644 --- a/core/Db/LoginFlowV2.php +++ b/core/Db/LoginFlowV2.php @@ -9,6 +9,7 @@ declare(strict_types=1); namespace OC\Core\Db; use OCP\AppFramework\Db\Entity; +use OCP\DB\Types; /** * @method int getTimestamp() @@ -55,8 +56,8 @@ class LoginFlowV2 extends Entity { protected $appPassword; public function __construct() { - $this->addType('timestamp', 'int'); - $this->addType('started', 'int'); + $this->addType('timestamp', Types::INTEGER); + $this->addType('started', Types::INTEGER); $this->addType('pollToken', 'string'); $this->addType('loginToken', 'string'); $this->addType('publicKey', 'string'); |