Migration Guide
Guide for migrating between versions or from other plugins.
Version Migration
Automatic Migration
SigmaOrders automatically handles:
- Config file updates (new options added)
- Database schema migrations
- Data preservation
No manual migration needed for most updates.
Manual Steps
-
Backup First
cp -r plugins/SigmaOrders plugins/SigmaOrders.backup -
Update Plugin
- Replace JAR file
- Start server
- Plugin migrates automatically
-
Verify
- Check console for migration messages
- Test basic functionality
- Review new config options
Config Migration
Automatic Updates
Config files are automatically updated:
- New options added with defaults
- Old options preserved
- No data loss
Manual Review
After update, review config for:
- New options to configure
- Deprecated options (if any)
- Recommended settings
Database Migration
SQLite to MySQL
-
Backup SQLite Database
cp plugins/SigmaOrders/database.db database.db.backup -
Configure MySQL
database:
type: MYSQL
mysql:
host: localhost
port: 3306
database: sigma_orders
username: your_user
password: your_password -
Restart Server
- Plugin creates MySQL tables
- Old SQLite file kept as backup
Note: Data migration is not automatic. You may need to export/import data manually or start fresh.
From Other Plugins
General Migration Steps
-
Export Data (if possible)
- Export orders from old plugin
- Save in compatible format
-
Install SigmaOrders
- Install plugin
- Configure settings
- Test functionality
-
Import Data (if needed)
- Use API to create orders
- Or manual recreation
Specific Plugins
Migration from specific plugins may require custom scripts. Contact support for assistance.
Rollback Procedure
If migration causes issues:
- Stop Server
- Restore Backup
rm -rf plugins/SigmaOrders
cp -r plugins/SigmaOrders.backup plugins/SigmaOrders - Restore Database (if needed)
cp plugins/SigmaOrders.backup/database.db plugins/SigmaOrders/ - Start Server
- Report Issue
Testing Migration
Pre-Migration Testing
- Test on development server first
- Verify all functionality works
- Check data integrity
- Test edge cases
Post-Migration Verification
- Verify orders load correctly
- Test order creation
- Test delivery system
- Test collection system
- Verify payments work
- Check statistics
Troubleshooting Migration
Config Issues
Symptoms: Config errors after update
Solutions:
- Check YAML syntax
- Restore from backup
- Review migration notes
- Check console for errors
Database Issues
Symptoms: Data missing or corrupted
Solutions:
- Restore database backup
- Check migration logs
- Verify database integrity
- Contact support if needed
Performance Issues
Symptoms: Slower after migration
Solutions:
- Check new config options
- Optimize database
- Review cache settings
- Consider MySQL if using SQLite
Related Documentation
- Installation - Installation guide
- Updates - Update procedures
- Troubleshooting - Common issues