Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛 Fix poll status not set to finalized for paused polls
Luke Vella1bd4723237c0
diff --git a/packages/database/prisma/migrations/20231205080854_fix_finalized_poll_status/migration.sql b/packages/database/prisma/migrations/20231205080854_fix_finalized_poll_status/migration.sqlnew file mode 100644index 000000000..66e1dc341--- /dev/null+++ b/packages/database/prisma/migrations/20231205080854_fix_finalized_poll_status/migration.sql@@ -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;