Added sharing keys to vault table

This commit is contained in:
brantje 2016-09-24 17:01:11 +02:00
parent da0412406f
commit 9aefb98584
3 changed files with 18 additions and 3 deletions

View file

@ -53,7 +53,16 @@
<notnull>false</notnull>
<unsigned>true</unsigned>
</field>
<field>
<name>public_sharing_key</name>
<type>clob</type>
<notnull>false</notnull>
</field>
<field>
<name>private_sharing_key</name>
<type>clob</type>
<notnull>false</notnull>
</field>
<index>
<name>passman_vault_last_access_index</name>
<field>

View file

@ -5,7 +5,7 @@
<description>A password manager for Nextcloud</description>
<licence>AGPL</licence>
<author>Sander Brand</author>
<version>1.0.2.6</version>
<version>1.0.2.7</version>
<namespace>Passman</namespace>
<category>other</category>
<website>https://github.com/nextcloud/passman/</website>

View file

@ -25,6 +25,11 @@ use \OCP\AppFramework\Db\Entity;
* @method integer getCreated()
* @method void setLastAccess(integer $value)
* @method integer getLastAccess()
* @method void setPublicSharingKey(string $value)
* @method string getPublicSharingKey()
* @method void setPrivateSharingKey(string $value)
* @method string getPrivateSharingKey()
*/
@ -37,7 +42,8 @@ class Vault extends Entity implements \JsonSerializable{
protected $userId;
protected $created;
protected $lastAccess;
protected $publicSharingKey;
protected $privateSharingKey;
public function __construct() {
// add types in constructor
$this->addType('created', 'integer');