diff options
| author | benj <benj@rse8.com> | 2022-12-08 11:16:32 -0800 |
|---|---|---|
| committer | benj <benj@rse8.com> | 2022-12-08 11:16:32 -0800 |
| commit | 3a4de13528fc85dcbe6bc9055d97ba5cc87f5712 (patch) | |
| tree | ea07f93e4de9d178f9dd786a0d772ee8b21cb0c3 /crates/secd/store/pg/sql/find_identity.sql | |
| parent | 2c4eb2d311919ad9fb70738199ecf99bf20c9fce (diff) | |
| download | secdiam-3a4de13528fc85dcbe6bc9055d97ba5cc87f5712.tar secdiam-3a4de13528fc85dcbe6bc9055d97ba5cc87f5712.tar.gz secdiam-3a4de13528fc85dcbe6bc9055d97ba5cc87f5712.tar.bz2 secdiam-3a4de13528fc85dcbe6bc9055d97ba5cc87f5712.tar.lz secdiam-3a4de13528fc85dcbe6bc9055d97ba5cc87f5712.tar.xz secdiam-3a4de13528fc85dcbe6bc9055d97ba5cc87f5712.tar.zst secdiam-3a4de13528fc85dcbe6bc9055d97ba5cc87f5712.zip | |
update schema to `secd`
add dummy `dev` command to cli
Diffstat (limited to '')
| -rw-r--r-- | crates/secd/store/pg/sql/find_identity.sql | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/secd/store/pg/sql/find_identity.sql b/crates/secd/store/pg/sql/find_identity.sql index 3a86a83..f4c9cbf 100644 --- a/crates/secd/store/pg/sql/find_identity.sql +++ b/crates/secd/store/pg/sql/find_identity.sql @@ -2,8 +2,8 @@ select identity_public_id, data, i.created_at -from auth.identity i -join auth.identity_email ie using (identity_id) -join auth.email e using (email_id) +from secd.identity i +join secd.identity_email ie using (identity_id) +join secd.email e using (email_id) where (($1 is null) or (i.identity_public_id = $1)) and (($2 is null) or (e.address = $2)) |
