1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 23:02:42 +01:00
phorge-phorge/resources/sql/autopatches/20220525.slowvote.10.status-xactions.sql

20 lines
764 B
MySQL
Raw Normal View History

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');