mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 20:57:31 +00:00
fix: remove userid unique constraint and fix user list query (#4632)
* fix: remove userid unique constraint and fix user list query * fix: improve instances query * improve user queries Co-authored-by: Silvan <silvan.reusser@gmail.com>
This commit is contained in:
@@ -20,20 +20,20 @@ var (
|
||||
", members.user_id" +
|
||||
", members.roles" +
|
||||
", projections.login_names.login_name" +
|
||||
", projections.users4_humans.email" +
|
||||
", projections.users4_humans.first_name" +
|
||||
", projections.users4_humans.last_name" +
|
||||
", projections.users4_humans.display_name" +
|
||||
", projections.users4_machines.name" +
|
||||
", projections.users4_humans.avatar_key" +
|
||||
", projections.users5_humans.email" +
|
||||
", projections.users5_humans.first_name" +
|
||||
", projections.users5_humans.last_name" +
|
||||
", projections.users5_humans.display_name" +
|
||||
", projections.users5_machines.name" +
|
||||
", projections.users5_humans.avatar_key" +
|
||||
", COUNT(*) OVER () " +
|
||||
"FROM projections.org_members2 AS members " +
|
||||
"LEFT JOIN projections.users4_humans " +
|
||||
"ON members.user_id = projections.users4_humans.user_id " +
|
||||
"AND members.instance_id = projections.users4_humans.instance_id " +
|
||||
"LEFT JOIN projections.users4_machines " +
|
||||
"ON members.user_id = projections.users4_machines.user_id " +
|
||||
"AND members.instance_id = projections.users4_machines.instance_id " +
|
||||
"LEFT JOIN projections.users5_humans " +
|
||||
"ON members.user_id = projections.users5_humans.user_id " +
|
||||
"AND members.instance_id = projections.users5_humans.instance_id " +
|
||||
"LEFT JOIN projections.users5_machines " +
|
||||
"ON members.user_id = projections.users5_machines.user_id " +
|
||||
"AND members.instance_id = projections.users5_machines.instance_id " +
|
||||
"LEFT JOIN projections.login_names " +
|
||||
"ON members.user_id = projections.login_names.user_id " +
|
||||
"AND members.instance_id = projections.login_names.instance_id " +
|
||||
|
Reference in New Issue
Block a user