1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02:00
phorge-phorge/resources/sql/autopatches/20220525.slowvote.04.response-value.sql
epriestley 9f075839a2 Update Slowvote to use sensible string constants for response visibility
Summary: Ref T13682. Migrate and update Slowvote to use API-friendly string constants for response visibility, not opaque integers.

Test Plan: Created and edited slowvotes, changing response visibility.

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T13682

Differential Revision: https://secure.phabricator.com/D21844
2022-05-26 09:58:48 -07:00

8 lines
335 B
SQL

UPDATE {$NAMESPACE}_slowvote.slowvote_poll
SET responseVisibility = 'visible' WHERE responseVisibility = '0';
UPDATE {$NAMESPACE}_slowvote.slowvote_poll
SET responseVisibility = 'voters' WHERE responseVisibility = '1';
UPDATE {$NAMESPACE}_slowvote.slowvote_poll
SET responseVisibility = 'owner' WHERE responseVisibility = '2';