projects
/
squeep-indie-auther
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
initial commit
[squeep-indie-auther]
/
src
/
db
/
postgres
/
sql
/
token-scopes-remove.sql
1
--
2
DELETE FROM
token_scope
3
WHERE
(
code_id
,
scope_id
)
IN
(
4
SELECT
code_id
,
scope_id
FROM
token_scope ts
5
INNER JOIN scope
s
USING
(
scope_id
)
6
WHERE scope
=
ANY
(
$
(
removeScopes
))
AND
code_id
=
$
(
codeId
)
7
)