mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-31 06:59:07 +02:00
🐛 Fix poll status not set to finalized for paused polls
This commit is contained in:
parent
a80460814e
commit
1bd4723237
1 changed files with 8 additions and 0 deletions
|
@ -0,0 +1,8 @@
|
|||
/*
|
||||
Fixes an issue in the previous migration where paused polls were not being
|
||||
set to finalized if they had an event_id.
|
||||
*/
|
||||
-- Set "status" to "finalized" if "event_id" is not null
|
||||
UPDATE "polls"
|
||||
SET "status" = 'finalized'::poll_status
|
||||
WHERE "event_id" IS NOT NULL;
|
Loading…
Add table
Add a link
Reference in a new issue