From f8c86b9ea6f1c21be46d5c2da64cf1cbdf014ef7 Mon Sep 17 00:00:00 2001 From: Marcos Zuriaga Date: Mon, 3 Oct 2016 19:50:03 +0200 Subject: [PATCH] Added edited_by field to credential revisions --- appinfo/database.xml | 6 ++++++ appinfo/info.xml | 2 +- lib/Db/CredentialRevision.php | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/appinfo/database.xml b/appinfo/database.xml index 85916172..da028f2d 100644 --- a/appinfo/database.xml +++ b/appinfo/database.xml @@ -366,6 +366,12 @@ clob true + + edited_by + text + true + 64 + passman_revision_id_index diff --git a/appinfo/info.xml b/appinfo/info.xml index 9f3478b0..0b82f3f5 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -5,7 +5,7 @@ A password manager for Nextcloud AGPL Sander Brand - 1.0.2.19 + 1.0.2.20 Passman other https://github.com/nextcloud/passman/ diff --git a/lib/Db/CredentialRevision.php b/lib/Db/CredentialRevision.php index 79dca45d..19619eac 100644 --- a/lib/Db/CredentialRevision.php +++ b/lib/Db/CredentialRevision.php @@ -26,6 +26,8 @@ use \OCP\AppFramework\Db\Entity; * @method integer getCreated() * @method void setCredentialData(string $value) * @method string getCredentialData() + * @method void setEditedBy(string $value) + * @method string getEditedBy() */ class CredentialRevision extends Entity implements \JsonSerializable { @@ -36,6 +38,7 @@ class CredentialRevision extends Entity implements \JsonSerializable { protected $userId; protected $created; protected $credentialData; + protected $editedBy; public function __construct() { @@ -53,6 +56,7 @@ class CredentialRevision extends Entity implements \JsonSerializable { 'guid' => $this->getGuid(), 'created' => $this->getCreated(), 'credential_data' => unserialize(base64_decode($this->getCredentialData())), + 'edited_by' => $this->getEditedBy(), ]; } } \ No newline at end of file