mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +01:00
809ae81752
Summary: Ref T13682. This prepares for modernizing Slowvote and exposing a more usable API. Test Plan: Ran migrations, opened and closed polls. Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam Maniphest Tasks: T13682 Differential Revision: https://secure.phabricator.com/D21848
19 lines
764 B
SQL
19 lines
764 B
SQL
UPDATE {$NAMESPACE}_slowvote.slowvote_transaction
|
|
SET transactionType = 'vote:status'
|
|
WHERE transactionType = 'vote:close';
|
|
|
|
UPDATE {$NAMESPACE}_slowvote.slowvote_transaction
|
|
SET oldValue = '"open"' WHERE
|
|
transactionType = 'vote:status' AND oldValue IN ('0', '"0"', 'false');
|
|
|
|
UPDATE {$NAMESPACE}_slowvote.slowvote_transaction
|
|
SET newValue = '"open"' WHERE
|
|
transactionType = 'vote:status' AND newValue IN ('0', '"0"', 'false');
|
|
|
|
UPDATE {$NAMESPACE}_slowvote.slowvote_transaction
|
|
SET oldValue = '"closed"' WHERE
|
|
transactionType = 'vote:status' AND oldValue IN ('1', '"1"', 'true');
|
|
|
|
UPDATE {$NAMESPACE}_slowvote.slowvote_transaction
|
|
SET newValue = '"closed"' WHERE
|
|
transactionType = 'vote:status' AND newValue IN ('1', '"1"', 'true');
|