Add field for sharing keys generated time

This commit is contained in:
brantje 2016-09-24 17:03:18 +02:00
parent 9aefb98584
commit 41837d2c7d
3 changed files with 9 additions and 2 deletions

View file

@ -63,6 +63,11 @@
<type>clob</type> <type>clob</type>
<notnull>false</notnull> <notnull>false</notnull>
</field> </field>
<field>
<name>sharing_keys_generated</name>
<type>integer</type>
<length>8</length>
</field>
<index> <index>
<name>passman_vault_last_access_index</name> <name>passman_vault_last_access_index</name>
<field> <field>

View file

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

View file

@ -29,7 +29,8 @@ use \OCP\AppFramework\Db\Entity;
* @method string getPublicSharingKey() * @method string getPublicSharingKey()
* @method void setPrivateSharingKey(string $value) * @method void setPrivateSharingKey(string $value)
* @method string getPrivateSharingKey() * @method string getPrivateSharingKey()
* @method void setSharingKeysGenerated(integer $value)
* @method integer getSharingKeysGenerated()
*/ */
@ -44,6 +45,7 @@ class Vault extends Entity implements \JsonSerializable{
protected $lastAccess; protected $lastAccess;
protected $publicSharingKey; protected $publicSharingKey;
protected $privateSharingKey; protected $privateSharingKey;
protected $sharingKeysGenerated;
public function __construct() { public function __construct() {
// add types in constructor // add types in constructor
$this->addType('created', 'integer'); $this->addType('created', 'integer');