X-Git-Url: http://git.squeep.com/?p=squeep-indie-auther;a=blobdiff_plain;f=src%2Fdb%2Fpostgres%2Fsql%2Ftoken-scopes-set.sql;fp=src%2Fdb%2Fpostgres%2Fsql%2Ftoken-scopes-set.sql;h=155717950438b8a58def0dda922e5a01b3de8bf6;hp=0000000000000000000000000000000000000000;hb=b0103b0d496262c438b40bc20304081dbfe41e73;hpb=8ed81748bce7cea7904cac7225b20a60cafdfc16 diff --git a/src/db/postgres/sql/token-scopes-set.sql b/src/db/postgres/sql/token-scopes-set.sql new file mode 100644 index 0000000..1557179 --- /dev/null +++ b/src/db/postgres/sql/token-scopes-set.sql @@ -0,0 +1,4 @@ +-- +INSERT INTO token_scope (code_id, scope_id) + SELECT $(codeId), scope_id FROM scope WHERE scope = ANY ($(scopes)) +