Compare commits
No commits in common. "97fba6cb851c37567d9f93d050bce90633542eb2" and "1eb72905cd1a017d6b197fb2aa17d7881dc72d76" have entirely different histories.
97fba6cb85
...
1eb72905cd
2 changed files with 3 additions and 14 deletions
|
@ -43,18 +43,7 @@ WHERE
|
||||||
user_id = :uid
|
user_id = :uid
|
||||||
;
|
;
|
||||||
|
|
||||||
-- name: delete-file#
|
-- name: delete-file!
|
||||||
DELETE FROM jobs
|
|
||||||
WHERE
|
|
||||||
user_uid = :uid
|
|
||||||
AND file_id = :fid
|
|
||||||
;
|
|
||||||
|
|
||||||
DELETE FROM file_analysis
|
|
||||||
WHERE
|
|
||||||
file_id = :fid
|
|
||||||
;
|
|
||||||
|
|
||||||
DELETE FROM files
|
DELETE FROM files
|
||||||
WHERE
|
WHERE
|
||||||
user_id = :uid
|
user_id = :uid
|
||||||
|
|
|
@ -58,12 +58,12 @@ WHERE
|
||||||
|
|
||||||
-- name: list-jobs-by-file
|
-- name: list-jobs-by-file
|
||||||
SELECT
|
SELECT
|
||||||
finished_at
|
*
|
||||||
, (SELECT name FROM job_statuses WHERE id = j.status_id) AS `status`
|
, (SELECT name FROM job_statuses WHERE id = j.status_id) AS `status`
|
||||||
FROM jobs
|
FROM jobs
|
||||||
WHERE
|
WHERE
|
||||||
file_id = :fid
|
file_id = :fid
|
||||||
AND uid = :uid
|
, uid = :uid
|
||||||
;
|
;
|
||||||
|
|
||||||
-- name: list-job-queue
|
-- name: list-job-queue
|
||||||
|
|
Loading…
Reference in a new issue