diff options
Diffstat (limited to 'lib/Migration/Version3003Date20180718112436.php')
-rw-r--r-- | lib/Migration/Version3003Date20180718112436.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Migration/Version3003Date20180718112436.php b/lib/Migration/Version3003Date20180718112436.php index 73e92fdf3..fbab50866 100644 --- a/lib/Migration/Version3003Date20180718112436.php +++ b/lib/Migration/Version3003Date20180718112436.php @@ -82,12 +82,12 @@ class Version3003Date20180718112436 extends SimpleMigrationStep { ->where($query->expr()->eq('object_type', $query->createNamedParameter('chat'))) ->groupBy('object_id'); - $result = $query->execute(); + $result = $query->executeQuery(); while ($row = $result->fetch()) { $lastActivity = new \DateTime($row['last_activity']); $update->setParameter('activity', $lastActivity, IQueryBuilder::PARAM_DATE) ->setParameter('room', $row['object_id']); - $update->execute(); + $update->executeStatement(); } $result->closeCursor(); } |