-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when a user was deleted remove them from applicable list, unless... #17920
Conversation
|
it is the only user, then remove the mount Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
58da404
to
4baab51
Compare
@nickvergessen @icewind1991 can we get this in? |
/backport to stable17 |
/backport to stable16 |
/backport to stable15 |
$builder = $this->connection->getQueryBuilder(); | ||
$query = $builder->select(['a.mount_id', $builder->func()->count('a.mount_id', 'count')]) | ||
->from('external_applicable', 'a') | ||
->rightJoin('a', 'external_applicable', 'b', $builder->expr()->eq('a.mount_id', 'b.mount_id')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right join was not supported on sqlite iirc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
turning it around seems to work, same table after all. PR incoming,
Breaks quite some integration tests: https://drone.nextcloud.com/nextcloud/server/23756/32/3 |
it is the only user, then remove the mount
fixes #15258
@icewind1991 does it make sense to you?