Wlork Yeah, it's hard to make it work for everyone. It was already supposed to be using the secondary color as background for voted options, but some update broke the CSS selector. I just fixed it and tried to introduce options to make it work for more people.
MikeLundahl You can't import 1.4 data into 2.x directly. You'd have to modify the data before importing it to change from discussion_id
to post_id
.
Was there any more in the error regarding DROP FOREIGN? I feel like there should've been - though if it is what I think it won't be very helpful anyway.
⚠️ NOTE: Read my message datitisev before deciding to continue
You could try the following. However, since this migration was erroring, and I'm not entirely sure why, others after might as well. So again, backup beforehand. This performs the failing migration manually:
- Dropping the foreign key yourself (make
discussion_id
not have a foreign relation)
- Renaming
discussion_id
column to post_id
- Adding a row to
migrations
table:
INSERT INTO
`migrations` (`migration`, `extension`)
VALUES
(
'2023_07_08_000000_rename_polls_discussion_id_column',
'fof-polls'
);
- Run
php flarum migrate
to run the remaining migrations