Skip to main content
Permission: emf.admin.debug.database

Database Migration

EMF uses flyway to automatically migrate the database. Normally you shouldn't need to manually migrate the database. In case things breaks you can use some commands to try and fix the issues.

Permission emf.admin.debug.database.flyway
CommandDescriptionPermission
/emf admin database drop-flywayDrops the Flyway schema history tableemf.admin.debug.database.flyway
/emf admin database repair-flywayRuns the Flyway repair commandemf.admin.debug.database.flyway
/emf admin database clean-flywayRuns the Flyway clean commandemf.admin.debug.database.flyway
/emf admin database migrate-to-latestAttempts to migrate the database to the latest versionemf.admin.debug.database.migrate

Migrating from Database V2

Not sure what database version you have?

Try running /emf admin version

Running the /emf admin migrate will attempt to migrate from database version 2 to the latest version.