Skip to content
Discussion options

You must be logged in to vote

This bug was introduced in Freeform 5.3.4, released June 7, 2024, and fixed in 5.16.6. The uninstall handler could remove Freeform’s foreign keys when another Craft plugin was uninstalled. Projects that ran 5.3.4–5.16.5 are worth checking, especially if another plugin was uninstalled during that time.

Updating prevents it from happening again, but doesn’t automatically restore missing keys.

Yes, that’s the correct repair command. Start with a read-only inspection:

php craft freeform/database/repair-foreign-keys --dry-run=1

After reviewing the results and backing up the database, pause site writes, queue workers, and scheduled purges, then run:

php craft freeform/database/repair-foreign-ke…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kjmartens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants