From d620fe33bdb8cbc979c87d4b32b0298a04fc13e6 Mon Sep 17 00:00:00 2001 From: nextcloud-command Date: Sun, 27 Oct 2024 03:00:58 +0000 Subject: [PATCH 1/2] chore(dev-deps): Bump nextcloud/ocp package Signed-off-by: GitHub --- composer.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.lock b/composer.lock index f71cacdb8..a83671081 100644 --- a/composer.lock +++ b/composer.lock @@ -70,12 +70,12 @@ "source": { "type": "git", "url": "https://github.com/nextcloud-deps/ocp.git", - "reference": "b83c3e45851c4249f42fe088991f66d4af1ceb55" + "reference": "b5b767571ac461011820e8d292509dd0e5bff59d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nextcloud-deps/ocp/zipball/b83c3e45851c4249f42fe088991f66d4af1ceb55", - "reference": "b83c3e45851c4249f42fe088991f66d4af1ceb55", + "url": "https://api.github.com/repos/nextcloud-deps/ocp/zipball/b5b767571ac461011820e8d292509dd0e5bff59d", + "reference": "b5b767571ac461011820e8d292509dd0e5bff59d", "shasum": "" }, "require": { @@ -107,7 +107,7 @@ "issues": "https://github.com/nextcloud-deps/ocp/issues", "source": "https://github.com/nextcloud-deps/ocp/tree/master" }, - "time": "2024-10-12T00:41:45+00:00" + "time": "2024-10-23T11:48:49+00:00" }, { "name": "psr/clock", From d492b3bf74858104e24a4297df22e6fa300ce4d9 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 28 Oct 2024 13:49:37 +0100 Subject: [PATCH 2/2] fix(entity): Migrate to db types Signed-off-by: Joas Schilling --- lib/Model/Settings.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/Model/Settings.php b/lib/Model/Settings.php index fb2ab6fcf..e747c4e67 100644 --- a/lib/Model/Settings.php +++ b/lib/Model/Settings.php @@ -9,6 +9,7 @@ namespace OCA\Notifications\Model; use OCP\AppFramework\Db\Entity; +use OCP\DB\Types; /** * @@ -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 {