Skip to content

Commit

Permalink
fix(entity): Migrate to db types
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Oct 28, 2024
1 parent d620fe3 commit d492b3b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/Model/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
namespace OCA\Notifications\Model;

use OCP\AppFramework\Db\Entity;
use OCP\DB\Types;

/**
*
Expand Down Expand Up @@ -38,10 +39,10 @@ class Settings extends Entity {
protected $nextSendTime;

public function __construct() {
$this->addType('userId', 'string');
$this->addType('batchTime', 'int');
$this->addType('lastSendId', 'int');
$this->addType('nextSendTime', 'int');
$this->addType('userId', Types::STRING);
$this->addType('batchTime', Types::INTEGER);
$this->addType('lastSendId', Types::BIGINT);
$this->addType('nextSendTime', Types::INTEGER);
}

public function asArray(): array {
Expand Down

0 comments on commit d492b3b

Please sign in to comment.