summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2020-04-02 11:34:21 +0200
committerGitHub <noreply@github.com>2020-04-02 11:34:21 +0200
commitbc6a5ef5c4431ca662424dbd1125e65e74b27fa8 (patch)
treea4ca41650699b5d9f9356eb4e7d5a5a10ab15ab2 /lib/public
parentc1368b86963b93a42ec98a856f8d307d922c8967 (diff)
parent1f5ba56235349ad811329b80cc1a2338dc8c79c7 (diff)
downloadnextcloud-server-bc6a5ef5c4431ca662424dbd1125e65e74b27fa8.tar.gz
nextcloud-server-bc6a5ef5c4431ca662424dbd1125e65e74b27fa8.zip
Merge pull request #19890 from nextcloud/enh/comments-reference-id
Add optional comments reference_id
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Comments/IComment.php17
-rw-r--r--lib/public/IDBConnection.php2
2 files changed, 19 insertions, 0 deletions
diff --git a/lib/public/Comments/IComment.php b/lib/public/Comments/IComment.php
index aac68a4036b..b98a015a30e 100644
--- a/lib/public/Comments/IComment.php
+++ b/lib/public/Comments/IComment.php
@@ -263,4 +263,21 @@ interface IComment {
*/
public function setObject($objectType, $objectId);
+ /**
+ * returns the reference id of the comment
+ *
+ * @return string|null
+ * @since 19.0.0
+ */
+ public function getReferenceId(): ?string;
+
+ /**
+ * sets (overwrites) the reference id of the comment
+ *
+ * @param string|null $referenceId e.g. sha256 hash sum
+ * @return IComment
+ * @since 19.0.0
+ */
+ public function setReferenceId(?string $referenceId): IComment;
+
}
diff --git a/lib/public/IDBConnection.php b/lib/public/IDBConnection.php
index 0cc29d3be46..a7aa9d448f1 100644
--- a/lib/public/IDBConnection.php
+++ b/lib/public/IDBConnection.php
@@ -51,6 +51,8 @@ interface IDBConnection {
const ADD_MISSING_INDEXES_EVENT = self::class . '::ADD_MISSING_INDEXES';
const CHECK_MISSING_INDEXES_EVENT = self::class . '::CHECK_MISSING_INDEXES';
+ const ADD_MISSING_COLUMNS_EVENT = self::class . '::ADD_MISSING_COLUMNS';
+ const CHECK_MISSING_COLUMNS_EVENT = self::class . '::CHECK_MISSING_COLUMNS';
/**
* Gets the QueryBuilder for the connection.