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