diff options
author | Marcel Klehr <mklehr@gmx.net> | 2024-05-07 12:46:21 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2024-05-14 11:38:41 +0200 |
commit | 4a3b9b826ea532991f8636b621f92760c321e93e (patch) | |
tree | 46c57ff0648993a2025ca7d25d0c491fc66f92b5 /lib/private/TaskProcessing/Db/Task.php | |
parent | fff2fb8e77c7a58aa9323c13daa355d6d8f3a118 (diff) | |
download | nextcloud-server-4a3b9b826ea532991f8636b621f92760c321e93e.tar.gz nextcloud-server-4a3b9b826ea532991f8636b621f92760c321e93e.zip |
refactor: identifier is now customId/custom_id
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/private/TaskProcessing/Db/Task.php')
-rw-r--r-- | lib/private/TaskProcessing/Db/Task.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/private/TaskProcessing/Db/Task.php b/lib/private/TaskProcessing/Db/Task.php index 6e181285c90..11892a14960 100644 --- a/lib/private/TaskProcessing/Db/Task.php +++ b/lib/private/TaskProcessing/Db/Task.php @@ -43,7 +43,7 @@ use OCP\TaskProcessing\Task as OCPTask; * @method string|null getUserId() * @method setAppId(string $type) * @method string getAppId() - * @method setIdentifier(string $identifier) + * @method setIdentifier(string $customId) * @method string getIdentifier() * @method setCompletionExpectedAt(null|\DateTime $completionExpectedAt) * @method null|\DateTime getCompletionExpectedAt() @@ -60,7 +60,7 @@ class Task extends Entity { protected $status; protected $userId; protected $appId; - protected $identifier; + protected $customId; protected $completionExpectedAt; protected $errorMessage; protected $progress; @@ -68,12 +68,12 @@ class Task extends Entity { /** * @var string[] */ - public static array $columns = ['id', 'last_updated', 'type', 'input', 'output', 'status', 'user_id', 'app_id', 'identifier', 'completion_expected_at', 'error_message', 'progress']; + public static array $columns = ['id', 'last_updated', 'type', 'input', 'output', 'status', 'user_id', 'app_id', 'custom_id', 'completion_expected_at', 'error_message', 'progress']; /** * @var string[] */ - public static array $fields = ['id', 'lastUpdated', 'type', 'input', 'output', 'status', 'userId', 'appId', 'identifier', 'completionExpectedAt', 'errorMessage', 'progress']; + public static array $fields = ['id', 'lastUpdated', 'type', 'input', 'output', 'status', 'userId', 'appId', 'customId', 'completionExpectedAt', 'errorMessage', 'progress']; public function __construct() { @@ -86,7 +86,7 @@ class Task extends Entity { $this->addType('status', 'integer'); $this->addType('userId', 'string'); $this->addType('appId', 'string'); - $this->addType('identifier', 'string'); + $this->addType('customId', 'string'); $this->addType('completionExpectedAt', 'datetime'); $this->addType('errorMessage', 'string'); $this->addType('progress', 'float'); @@ -110,7 +110,7 @@ class Task extends Entity { 'errorMessage' => $task->getErrorMessage(), 'userId' => $task->getUserId(), 'appId' => $task->getAppId(), - 'identifier' => $task->getIdentifier(), + 'customId' => $task->getIdentifier(), 'completionExpectedAt' => $task->getCompletionExpectedAt(), 'progress' => $task->getProgress(), ]); |