
π§ v2.0.0-beta.2 - Critical Migration Fix

This release fixes a critical data loss issue reported after beta.1.
π Bug Fix
Fixed: Revision history data loss during upgrade
When upgrading from the-turk/flarum-diff, the migration was dropping and recreating tables even when they contained existing revision data. This caused complete loss of all revision history.
The migration files now check if tables contain data before any operations:
- β
If table has data β preserve it, skip recreation
- β
If table is empty β safe to recreate for clean schema
- β
Proper foreign key handling when recreation is needed
β
Automated Migration Testing
We've added a comprehensive GitHub Actions workflow that tests the complete upgrade scenario:
- Install Flarum 1.8 +
the-turk/flarum-diff
- Create revision data via API
- Upgrade to Flarum 2.x
- Install
huseyinfiliz/flarum-diff
- Verify all revision data is preserved
Every release is now automatically tested for data safety.
Check it: huseyinfiliz/flarum-diffactions/runs/20090483428
π§ Installation
composer require huseyinfiliz/flarum-diff:"*"
π Update
composer update huseyinfiliz/flarum-diff
php flarum migrate
php flarum cache:clear
π Links
π‘ Feedback & Suggestions
Feel free to share your ideas, report bugs, or request features in the discussion thread!
β οΈ If you lost data with beta.1, unfortunately it cannot be recovered. We apologize for this issue and have implemented safeguards to prevent it from happening again. navindra