mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 22:01:01 +00:00
30 lines
452 B
SQL
30 lines
452 B
SQL
-- name: sender-find-repo
|
|
|
|
SELECT
|
|
sender_id
|
|
,sender_repo_id
|
|
,sender_login
|
|
,sender_allow
|
|
,sender_block
|
|
FROM senders
|
|
WHERE sender_repo_id = ?
|
|
|
|
-- name: sender-find-repo-login
|
|
|
|
SELECT
|
|
sender_id
|
|
,sender_repo_id
|
|
,sender_login
|
|
,sender_allow
|
|
,sender_block
|
|
FROM senders
|
|
WHERE sender_repo_id = ?
|
|
AND sender_login = ?
|
|
|
|
-- name: sender-delete-repo
|
|
|
|
DELETE FROM senders WHERE sender_repo_id = ?
|
|
|
|
-- name: sender-delete
|
|
|
|
DELETE FROM senders WHERE sender_id = ?
|