Skip to content

Commit

Permalink
fix(php): Repair the SQL request when upgrading
Browse files Browse the repository at this point in the history
When we upgrade the workspace app 2.0.1 to 3.0.X. We have a problem
using double quotes for an expression, because the expression is
interpreted as a column.

Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
  • Loading branch information
zak39 committed Sep 11, 2023
1 parent 2ef2942 commit 59dd177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Db/GroupFoldersGroupsMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ public function getSpacenamesGroupIds() {
'gf_groups.folder_id'
)
)
->where('group_id not like "SPACE-GE%"')
->andWhere('group_id not like "SPACE-U%"');
->where('group_id not like \'SPACE-GE%\'')
->andWhere('group_id not like \'SPACE-U%\'');

return $qb->executeQuery()->fetchAll();
}
Expand Down

0 comments on commit 59dd177

Please sign in to comment.