aboutsummaryrefslogtreecommitdiffstats
path: root/apps/contactsinteraction/lib/Db/RecentContact.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/contactsinteraction/lib/Db/RecentContact.php')
-rw-r--r--apps/contactsinteraction/lib/Db/RecentContact.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/apps/contactsinteraction/lib/Db/RecentContact.php b/apps/contactsinteraction/lib/Db/RecentContact.php
index 581b4b292ca..fc6ec3cc249 100644
--- a/apps/contactsinteraction/lib/Db/RecentContact.php
+++ b/apps/contactsinteraction/lib/Db/RecentContact.php
@@ -9,6 +9,7 @@ declare(strict_types=1);
namespace OCA\ContactsInteraction\Db;
use OCP\AppFramework\Db\Entity;
+use OCP\DB\Types;
/**
* @method void setActorUid(string $uid)
@@ -33,11 +34,11 @@ class RecentContact extends Entity {
protected int $lastContact = -1;
public function __construct() {
- $this->addType('actorUid', 'string');
- $this->addType('uid', 'string');
- $this->addType('email', 'string');
- $this->addType('federatedCloudId', 'string');
- $this->addType('card', 'blob');
- $this->addType('lastContact', 'int');
+ $this->addType('actorUid', Types::STRING);
+ $this->addType('uid', Types::STRING);
+ $this->addType('email', Types::STRING);
+ $this->addType('federatedCloudId', Types::STRING);
+ $this->addType('card', Types::BLOB);
+ $this->addType('lastContact', Types::INTEGER);
}
}