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

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-10-30 16:03:37 +0300
committerJoas Schilling <coding@schilljs.com>2020-11-26 11:46:43 +0300
commit459858a69527311bf60ffa553d45ba2a7eeec032 (patch)
treea25ef253ccc64b9b8da3e7c7597a55c8495f3c4f /lib/Migration
parent89f3f351962c2183d1cfeadedd2b6916d7958bc3 (diff)
Introduce constants for the actor types
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Migration')
-rw-r--r--lib/Migration/Version10000Date20201015134000.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Migration/Version10000Date20201015134000.php b/lib/Migration/Version10000Date20201015134000.php
index b050619ff..a56e76a76 100644
--- a/lib/Migration/Version10000Date20201015134000.php
+++ b/lib/Migration/Version10000Date20201015134000.php
@@ -27,6 +27,7 @@ namespace OCA\Talk\Migration;
use Closure;
use Doctrine\DBAL\Types\Type;
+use OCA\Talk\Model\Attendee;
use OCA\Talk\Participant;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\DB\ISchemaWrapper;
@@ -209,7 +210,7 @@ class Version10000Date20201015134000 extends SimpleMigrationStep {
$insert
->setParameter('room_id', (int) $row['room_id'], IQueryBuilder::PARAM_INT)
- ->setParameter('actor_type', 'users')
+ ->setParameter('actor_type', Attendee::ACTOR_USERS)
->setParameter('actor_id', $row['user_id'])
->setParameter('participant_type', (int) $row['participant_type'], IQueryBuilder::PARAM_INT)
->setParameter('favorite', (bool) $row['favorite'], IQueryBuilder::PARAM_BOOL)