mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:17:32 +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:
@@ -511,6 +511,9 @@ func (c Column) isZero() bool {
|
||||
}
|
||||
|
||||
func join(join, from Column) string {
|
||||
if join.identifier() == join.table.InstanceIDIdentifier() {
|
||||
return join.table.identifier() + " ON " + from.identifier() + " = " + join.identifier()
|
||||
}
|
||||
return join.table.identifier() + " ON " + from.identifier() + " = " + join.identifier() + " AND " + from.table.InstanceIDIdentifier() + " = " + join.table.InstanceIDIdentifier()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user