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 /apps/user_status/lib | |
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 'apps/user_status/lib')
-rw-r--r-- | apps/user_status/lib/Db/UserStatus.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/user_status/lib/Db/UserStatus.php b/apps/user_status/lib/Db/UserStatus.php index 1be35830853..b2da4a9e07a 100644 --- a/apps/user_status/lib/Db/UserStatus.php +++ b/apps/user_status/lib/Db/UserStatus.php @@ -9,6 +9,7 @@ declare(strict_types=1); namespace OCA\UserStatus\Db; use OCP\AppFramework\Db\Entity; +use OCP\DB\Types; /** * Class UserStatus @@ -73,13 +74,13 @@ class UserStatus extends Entity { public function __construct() { $this->addType('userId', 'string'); $this->addType('status', 'string'); - $this->addType('statusTimestamp', 'int'); + $this->addType('statusTimestamp', Types::INTEGER); $this->addType('isUserDefined', 'boolean'); $this->addType('messageId', 'string'); $this->addType('customIcon', 'string'); $this->addType('customMessage', 'string'); - $this->addType('clearAt', 'int'); + $this->addType('clearAt', Types::INTEGER); $this->addType('isBackup', 'boolean'); - $this->addType('statusMessageTimestamp', 'int'); + $this->addType('statusMessageTimestamp', Types::INTEGER); } } |