Last active
August 29, 2015 14:01
-
-
Save mattsnyder/b5327abb3c2bd15fd46e to your computer and use it in GitHub Desktop.
remove linked studies from dropdown (Trello GsRYp6No)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin; | |
SELECT | |
id, | |
linked_study_id, | |
folder_id | |
FROM studies | |
WHERE | |
linked_study_id IS NOT NULL AND | |
folder_id IS NOT NULL; | |
UPDATE | |
studies | |
SET | |
folder_id = null | |
WHERE | |
linked_study_id IS NOT NULL AND | |
folder_id IS NOT NULL; | |
rollback; |
Nope, who needs tests??????
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you test this? ;)