Closed watershed closed 9 months ago
Hi @watershed
It is very strange that you already have the split tables, which was a feature introduced in Freeform 4.x.
Since you have the change already, you could try removing the m220330_111857_SplitSubmissionsTable
migration from the migrations folder inside Freeform migrations folder in vendor/solspace/craft-freeform/packages/plugin/src/migrations/
and run the migration again.
Let me know if that works.
Thanks for the prompt reply. Makes me wonder if there's something in my vendor
codebase for 3.9.10 that isn't quite as chronologically correct as I think it is.
I'll look into it and try your suggestion. Thanks.
I have a 3.9.10 Craft instance with Freeform Pro 3.13.33, running on PHP 8.1.26 and MariaDB 10.6.16, which I'm trying to upgrade to 4.x.
The instance has lots of Freeform forms.
I'm following the steps at https://craftcms.com/docs/4.x/upgrade.html#performing-the-upgrade.
Each time I do so I'm starting with a completely empty database which I'm restoring to a Craft 3.9.10 content state.
Every time I invoke
php craft migrate/all
the point of failure relates toapplying m220330_111857_SplitSubmissionsTable
with respect to a Freeform form submissions table.For example, here's an anonymised error dump:
IF I delete all the forms in the CMS at Freeform > Forms, and drop all the corresponding tables from the database, and then run the upgrade process, it works!
Is there a way to go about this without having to sacrifice all the forms and rebuild them?