Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorVinzenz <vinzenz.rosenkranz@gmail.com>2016-08-28 16:29:01 +0300
committerVinzenz Rosenkranz <vinzenz.rosenkranz@gmail.com>2016-08-28 16:34:44 +0300
commit1f4d1c117d4aed8357b82246dbe5f151dcb2eefc (patch)
tree19a4a27e8caf6263113b466e677896a1568d919d /db
parentb58243c8119b4c357078ddba2766dd0718420ae1 (diff)
allow anonymous polls
Diffstat (limited to 'db')
-rw-r--r--db/event.php3
-rw-r--r--db/eventmapper.php3
2 files changed, 5 insertions, 1 deletions
diff --git a/db/event.php b/db/event.php
index b16a61d8..3e4c15e4 100644
--- a/db/event.php
+++ b/db/event.php
@@ -20,6 +20,8 @@ use OCP\AppFramework\Db\Entity;
* @method void setExpire(timestamp $value)
* @method string getHash()
* @method void setHash(string $value)
+ * @method integer getIsAnonymous()
+ * @method void setIsAnonymous(integer $value)
*/
class Event extends Entity {
public $type;
@@ -30,4 +32,5 @@ class Event extends Entity {
public $access;
public $expire;
public $hash;
+ public $isAnonymous;
}
diff --git a/db/eventmapper.php b/db/eventmapper.php
index 99c42f4a..d4fd653a 100644
--- a/db/eventmapper.php
+++ b/db/eventmapper.php
@@ -81,7 +81,8 @@ class EventMapper extends Mapper {
*PREFIX*polls_events.owner,
*PREFIX*polls_events.created,
*PREFIX*polls_events.access,
- *PREFIX*polls_events.expire
+ *PREFIX*polls_events.expire,
+ *PREFIX*polls_events.is_anonymous
FROM *PREFIX*polls_events
LEFT JOIN *PREFIX*polls_particip
ON *PREFIX*polls_events.id = *PREFIX*polls_particip.id