@@ -190,7 +190,7 @@ public function findAllByUser(string $userId, ?int $limit = null, ?int $offset =
190190 // FIXME this used to be a UNION to get boards owned by $userId and the user shares in one single query
191191 // Is it possible with the query builder?
192192 $ qb = $ this ->db ->getQueryBuilder ();
193- $ qb ->select ('id ' , 'title ' , 'owner ' , 'color ' , 'archived ' , 'deleted_at ' , 'last_modified ' )
193+ $ qb ->select ('id ' , 'title ' , 'owner ' , 'color ' , 'archived ' , 'deleted_at ' , 'last_modified ' , ' external_id ' , ' share_token ' )
194194 // this does not work in MySQL/PostgreSQL
195195 //->selectAlias('0', 'shared')
196196 ->from ('deck_boards ' , 'b ' )
@@ -230,7 +230,7 @@ public function findAllByUser(string $userId, ?int $limit = null, ?int $offset =
230230
231231 // shared with user
232232 $ qb = $ this ->db ->getQueryBuilder ();
233- $ qb ->select ('b.id ' , 'title ' , 'owner ' , 'color ' , 'archived ' , 'deleted_at ' , 'last_modified ' )
233+ $ qb ->select ('b.id ' , 'title ' , 'owner ' , 'color ' , 'archived ' , 'deleted_at ' , 'last_modified ' , ' external_id ' , ' share_token ' )
234234 //->selectAlias('1', 'shared')
235235 ->from ('deck_boards ' , 'b ' )
236236 ->innerJoin ('b ' , 'deck_board_acl ' , 'acl ' , $ qb ->expr ()->eq ('b.id ' , 'acl.board_id ' ))
@@ -298,7 +298,7 @@ public function findAllByGroups(string $userId, array $groups, ?int $limit = nul
298298 return [];
299299 }
300300 $ qb = $ this ->db ->getQueryBuilder ();
301- $ qb ->select ('b.id ' , 'title ' , 'owner ' , 'color ' , 'archived ' , 'deleted_at ' , 'last_modified ' )
301+ $ qb ->select ('b.id ' , 'title ' , 'owner ' , 'color ' , 'archived ' , 'deleted_at ' , 'last_modified ' , ' external_id ' , ' share_token ' )
302302 //->selectAlias('2', 'shared')
303303 ->from ('deck_boards ' , 'b ' )
304304 ->innerJoin ('b ' , 'deck_board_acl ' , 'acl ' , $ qb ->expr ()->eq ('b.id ' , 'acl.board_id ' ))
@@ -354,7 +354,7 @@ public function findAllByCircles(string $userId, ?int $limit = null, ?int $offse
354354 }
355355
356356 $ qb = $ this ->db ->getQueryBuilder ();
357- $ qb ->select ('b.id ' , 'title ' , 'owner ' , 'color ' , 'archived ' , 'deleted_at ' , 'last_modified ' )
357+ $ qb ->select ('b.id ' , 'title ' , 'owner ' , 'color ' , 'archived ' , 'deleted_at ' , 'last_modified ' , ' external_id ' , ' share_token ' )
358358 //->selectAlias('2', 'shared')
359359 ->from ('deck_boards ' , 'b ' )
360360 ->innerJoin ('b ' , 'deck_board_acl ' , 'acl ' , $ qb ->expr ()->eq ('b.id ' , 'acl.board_id ' ))
@@ -404,7 +404,7 @@ public function findAllByCircles(string $userId, ?int $limit = null, ?int $offse
404404
405405 public function findAllByTeam (string $ teamId ): array {
406406 $ qb = $ this ->db ->getQueryBuilder ();
407- $ qb ->select ('b.id ' , 'title ' , 'owner ' , 'color ' , 'archived ' , 'deleted_at ' , 'last_modified ' )
407+ $ qb ->select ('b.id ' , 'title ' , 'owner ' , 'color ' , 'archived ' , 'deleted_at ' , 'last_modified ' , ' external_id ' , ' share_token ' )
408408 ->from ('deck_boards ' , 'b ' )
409409 ->innerJoin ('b ' , 'deck_board_acl ' , 'acl ' , $ qb ->expr ()->eq ('b.id ' , 'acl.board_id ' ))
410410 ->where ($ qb ->expr ()->eq ('acl.type ' , $ qb ->createNamedParameter (Acl::PERMISSION_TYPE_CIRCLE , IQueryBuilder::PARAM_INT )))
@@ -432,7 +432,7 @@ public function findTeamsForBoard(int $boardId): array {
432432
433433 public function isSharedWithTeam (int $ boardId , string $ teamId ): bool {
434434 $ qb = $ this ->db ->getQueryBuilder ();
435- $ qb ->select ('b.id ' , 'title ' , 'owner ' , 'color ' , 'archived ' , 'deleted_at ' , 'last_modified ' )
435+ $ qb ->select ('b.id ' , 'title ' , 'owner ' , 'color ' , 'archived ' , 'deleted_at ' , 'last_modified ' , ' external_id ' , ' share_token ' )
436436 ->from ('deck_boards ' , 'b ' )
437437 ->innerJoin ('b ' , 'deck_board_acl ' , 'acl ' , $ qb ->expr ()->eq ('b.id ' , 'acl.board_id ' ))
438438 ->where ($ qb ->expr ()->eq ('b.id ' , $ qb ->createNamedParameter ($ boardId , IQueryBuilder::PARAM_INT )))
@@ -458,7 +458,7 @@ public function findToDelete() {
458458 // add buffer of 5 min
459459 $ timeLimit = time () - (60 * 5 );
460460 $ qb = $ this ->db ->getQueryBuilder ();
461- $ qb ->select ('id ' , 'title ' , 'owner ' , 'color ' , 'archived ' , 'deleted_at ' , 'last_modified ' )
461+ $ qb ->select ('id ' , 'title ' , 'owner ' , 'color ' , 'archived ' , 'deleted_at ' , 'last_modified ' , ' external_id ' , ' share_token ' )
462462 ->from ('deck_boards ' )
463463 ->where ($ qb ->expr ()->gt ('deleted_at ' , $ qb ->createNamedParameter (0 , IQueryBuilder::PARAM_INT )))
464464 ->andWhere ($ qb ->expr ()->lt ('deleted_at ' , $ qb ->createNamedParameter ($ timeLimit , IQueryBuilder::PARAM_INT )));
0 commit comments