Skip to main content

Migration Guide

Updating SigmaOrders, switching databases, or migrating from another plugin.

Version Updatesโ€‹

Config and database schema updates are automatic - new options get defaults, old data is preserved, no manual migration needed for most updates.

  1. Backup: cp -r plugins/SigmaOrders plugins/SigmaOrders.backup
  2. Replace the JAR and start the server - the plugin migrates automatically.
  3. Verify: check console for migration messages, test basic functionality, review new config options.

SQLite โ†’ MySQLโ€‹

  1. Backup: cp plugins/SigmaOrders/database.db database.db.backup
  2. Set type: MYSQL and connection details in config.yml (see Database Configuration).
  3. Restart - the plugin creates MySQL tables automatically. The old SQLite file is kept untouched.

Data migration is not automatic - export/import data manually or start fresh.

From Other Pluginsโ€‹

  1. Export orders from the old plugin if it supports it.
  2. Install and configure SigmaOrders.
  3. Re-create orders via the API, or manually. Migration from specific plugins may need custom scripts - contact support.

Rollbackโ€‹

  1. Stop the server.
  2. Restore the plugin folder: rm -rf plugins/SigmaOrders && cp -r plugins/SigmaOrders.backup plugins/SigmaOrders
  3. If needed, restore the database: cp plugins/SigmaOrders.backup/database.db plugins/SigmaOrders/
  4. Start the server and report the issue.

Testing Migrationโ€‹

Test on a dev server first: verify orders load, test order creation/delivery/collection, confirm payments work, and check statistics. Do this before and after migrating on production.

Troubleshootingโ€‹

SymptomCauseFix
Config errors after updateBad YAML, stale syntaxCheck YAML syntax, restore from backup, check console for the specific error
Data missing/corrupted after migrationFailed or partial migrationRestore database backup, check migration logs in console, verify database integrity
Slower after migrationNew config defaults not tuned, still on SQLiteReview new config options, consider MySQL, see Performance Guide

See Alsoโ€‹