1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-09 16:32:39 +01:00
phorge-phorge/resources/sql/autopatches/20220525.slowvote.09.status-value.sql
epriestley 809ae81752 Update Slowvote poll status to use sensible string constants
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
2022-05-27 10:15:01 -07:00

5 lines
173 B
SQL

UPDATE {$NAMESPACE}_slowvote.slowvote_poll
SET status = 'open' WHERE status = '0';
UPDATE {$NAMESPACE}_slowvote.slowvote_poll
SET status = 'closed' WHERE status = '1';