You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
;WITH CTE AS
(
SELECT
watchers.watchable_type
,watchers.id
,users.login
,users.firstname
,users.lastname
,users.type
,CASE users.status
WHEN 1 THEN 'Active'
WHEN 2 THEN 'Registered'
WHEN 3 THEN 'Locked'
WHEN 4 THEN 'Anonymous'
ELSE 'Unknown'
END AS user_status
FROM issues
LEFT JOIN watchers
ON watchers.watchable_id = issues.id
LEFT JOIN users
ON users.id = watchers."user_id"
WHERE issues.id = 3276
)
SELECT * FROM CTE
-- DELETE FROM watchers WHERE watchers.id = 198
The text was updated successfully, but these errors were encountered:
Add ability to remove watchers:
The text was updated successfully, but these errors were encountered: