mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-04 20:52:43 +01:00
9f075839a2
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
23 lines
923 B
SQL
23 lines
923 B
SQL
UPDATE {$NAMESPACE}_slowvote.slowvote_transaction
|
|
SET oldValue = '"visible"' WHERE
|
|
transactionType = 'vote:responses' AND oldValue IN ('0', '"0"');
|
|
|
|
UPDATE {$NAMESPACE}_slowvote.slowvote_transaction
|
|
SET newValue = '"visible"' WHERE
|
|
transactionType = 'vote:responses' AND newValue IN ('0', '"0"');
|
|
|
|
UPDATE {$NAMESPACE}_slowvote.slowvote_transaction
|
|
SET oldValue = '"voters"' WHERE
|
|
transactionType = 'vote:responses' AND oldValue IN ('1', '"1"');
|
|
|
|
UPDATE {$NAMESPACE}_slowvote.slowvote_transaction
|
|
SET newValue = '"voters"' WHERE
|
|
transactionType = 'vote:responses' AND newValue IN ('1', '"1"');
|
|
|
|
UPDATE {$NAMESPACE}_slowvote.slowvote_transaction
|
|
SET oldValue = '"owner"' WHERE
|
|
transactionType = 'vote:responses' AND oldValue IN ('2', '"2"');
|
|
|
|
UPDATE {$NAMESPACE}_slowvote.slowvote_transaction
|
|
SET newValue = '"owner"' WHERE
|
|
transactionType = 'vote:responses' AND newValue IN ('2', '"2"');
|