2.0.0
🛑 BACKUP BEFORE UPGRADING TO THIS VERSION 🛑
This version contains database refactors that make the data incompatible with 1.x
if you try to downgrade.
If you encounter errors, you WILL need to have a backup of all the polls tables available to go back to 1.4.2
. Permission names have also changed, so a backup of group_permissions
would also be helpful.
Upgrading
Save a backup of your database -- mostly the polls
, poll_votes
, poll_options
, and group_permissions
tables -- before continuing. If you don't have any polls in your forum and haven't configured polls permissions, you can skip this step.
The migration process will delete polls in discussions that don't have associated first posts (discussion's first_post_id = null
and no post exists with number = 1
). These polls would not have been visible in v1, and so removing them should (theoretically) not cause any visible data loss - check the Flarum log after migrating to see if any polls were deleted.
composer require fof/polls
php flarum migrate
php flarum cache:clear
What's Changed
- Drop flatpickr by @dsevillamartin in #72
- Move posts to polls by @dsevillamartin in #73
- More features & breaking v2 changes by @dsevillamartin in #74
- Move voters button next to heading & fix no permission error after poll ends
- Create endpoint for new poll to add to existing post (#67, #16)
- Drop 'newPollVote' websocket message (#38)
- Drop ReFlar/polls database compatibility (#37)
- Don't show poll if post is hidden unless revealing content, adjust some styling
- Separate edit permission into own polls & polls in own posts
Full Changelog: 1.4.2...2.0.0